Contract 0xeC94fb2D7f28B2d868b551DcF07860038A7930a1 1

Contract Overview

Balance:
0 MATIC
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xcc1f660a61900bba7bfbc3848612429c5b30c8cca2bc973a94c36a2e0b95749aAdd Token219341022021-11-26 5:08:159 days 15 hrs ago0x3aa309a1dd21fde1366efaf1b7b19d98eed33167 IN  0xec94fb2d7f28b2d868b551dcf07860038a7930a10 MATIC0.000907165
0x007e56038c7e839842eefd728626f6d61fc5232ae0418e32f71edd7070a3c19aAdd Token219340732021-11-26 5:07:139 days 15 hrs ago0x3aa309a1dd21fde1366efaf1b7b19d98eed33167 IN  0xec94fb2d7f28b2d868b551dcf07860038a7930a10 MATIC0.000907081
0xfb9b901b1d4ac9579ebe85e741599bc58b8f795eeb1e243184eeacfc295305afAdd Token219340602021-11-26 5:06:479 days 15 hrs ago0x3aa309a1dd21fde1366efaf1b7b19d98eed33167 IN  0xec94fb2d7f28b2d868b551dcf07860038a7930a10 MATIC0.000966931
0x876b743b314905aaab9d0da9492ae3d7e130be61758f5f2af22111e5c0d1a7d00x60806040219337592021-11-26 4:56:259 days 15 hrs ago0x3aa309a1dd21fde1366efaf1b7b19d98eed33167 IN  Contract Creation0 MATIC0.026102755
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading
This contract contains unverified libraries: RandomToken

Contract Source Code Verified (Exact Match)

Contract Name:
DuckBuckPresents

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "./BlockTime.sol";
import "./RandomToken.sol";
import "./IDuckBuckNFT.sol";

// ____________      ______________   ____________      ______________   __
//|        \   \    /  |       \   |_/  \   _  \  \    /  |       \   |_/  \
//|   ___   |   |  |   |    ____|     __|  |_|  |  |  |   |    ____|      __|
//|  |   |  |   |  |   |   |         /         /   |  |   |   |          /
//|  |___|  |   |__|   |   |____     \__    _  \   |__|   |   |____      \__
//|         |          |        |   _   |  |_|  |         |        |    _   |
//|________/__________/________/___| \__|_______/_________/________/___| \__|

contract DuckBuckPresents is ERC1155Supply, Ownable, BlockTime {
    event PermanentURI(string _value, uint256 indexed _tokenId);
    event ExternalMint(address indexed _to, string indexed _externalTransactionId, uint256 _quantity);

    uint256 public saleState = 0;
    uint256 public burnState = 0;
    uint256 public maxTokens = 0;
    uint256 public tokenTypeIndex = 0;
    uint256 public tokenCounter = 0;
    uint256 public price = 3000000000000000000; // 3 matic ~ $6

    string public name = "Duck Buck Presents";
    string public symbol = "DBPRESENTS";

    mapping(uint256 => string) private tokenJSON;
    mapping(uint256 => bool) private tokenIsFrozen;
    mapping(string => uint256) private externalTransactionIds;
    address[] private addressToCallWhenTokenIsBurnt;

    uint256 private startTimestamp = 1637431448; // 11-20-2021

    constructor(uint256 _maxTokens) ERC1155("") {
        maxTokens = _maxTokens;
    }

    modifier saleHasStarted {
        require(getTime() >= startTimestamp, "Too early for Christmas.");
        require(saleState == 1, "Wrapping shop hasn't opened yet.");
        _;
    }

    modifier tokenExists(uint256 _tokenId) {
        require(_tokenId > 0 && _tokenId <= tokenTypeIndex, "Token does not exist.");
        _;
    }

    function wrapPresents(uint256 _presents) external payable
        saleHasStarted
    {
        require(_presents >= 1, "You have to wrap at least one present!");
        require(_presents + tokenCounter <= maxTokens, "Running out of presents.");
        require(msg.value >= price * _presents, "More matic needed to wrap these!");

        wrap(_msgSender(), _presents, name);
    }

    function deliverPresentFromExternalTransaction(address _address, uint256 _presentsToWrap,
        string calldata _externalTransactionId) external
        onlyOwner
    {
        require(_presentsToWrap + tokenCounter <= maxTokens, "Running out of presents.");

        bytes memory _externalTransactionIdInBytes = bytes(_externalTransactionId);
        if (_externalTransactionIdInBytes.length == 0) {
            wrap(_address, _presentsToWrap, name);
        } else {
            require(externalTransactionIds[_externalTransactionId] == 0, "External transaction has already been minted.");
            wrap(_address, _presentsToWrap, _externalTransactionId);

            externalTransactionIds[_externalTransactionId] = 1;
            emit ExternalMint(_address, _externalTransactionId, _presentsToWrap);
        }
    }

    function mintPresents(uint256 _presents, uint256 _tokenId) external
        onlyOwner
    {
        tokenCounter += _presents;
        _mint(_msgSender(), _tokenId, _presents, "");
    }

    function wrap(address _mintAddress, uint256 _presents, string memory _externalTransactionId) internal {
        require(tokenTypeIndex > 0, "No tokens are set to mint.");

        for (uint256 i = 0; i < _presents; i++) {
            tokenCounter++;
            uint256 tokenId = RandomToken.getRandomToken(_mintAddress, _presents, _externalTransactionId, tokenCounter, tokenTypeIndex);
            _mint(_mintAddress, tokenId, 1, "");
        }
    }

    function unwrapPresents(uint256 _tokenId, uint256 _amount) external
        tokenExists(_tokenId)
    {
        require(burnState == 1, "Can't open presents yet!");

        _burn(_msgSender(), _tokenId, _amount);
        mintTokensOnBurn(_msgSender(), _amount, _tokenId);
    }

    function unwrapPresentsAutomate(address[] calldata _addresses, uint256[] calldata _amounts, uint256 _tokenId) external payable
        onlyOwner
        tokenExists(_tokenId)
    {
        require(burnState == 1, "Can't open presents yet!");

        uint256 addressLength = _addresses.length;
        require(addressLength == _amounts.length, "Array length must be equal for addresses and amounts");

        // don't allow partial burns
        for (uint256 i = 0; i < addressLength; i++) {
            require(balanceOf(_addresses[i], _tokenId) >= _amounts[i], "Not enough tokens available to burn.");
        }

        for (uint256 i = 0; i < addressLength; i++) {
            _burn(_addresses[i], _tokenId, _amounts[i]);
            mintTokensOnBurn(_addresses[i], _amounts[i], _tokenId);
        }
    }

    function mintTokensOnBurn(address _to, uint256 _quantity, uint256 _tokenId) internal {
        if (_tokenId == 3) {
            _quantity = _quantity * 2;
        }

        for (uint256 i = 0; i < addressToCallWhenTokenIsBurnt.length; i++) {
            IDuckBuckNFT(addressToCallWhenTokenIsBurnt[i]).mintToken(_to, _quantity);
        }
    }

    function uri(uint256 _tokenId) override public virtual view
        tokenExists(_tokenId)
        returns (string memory)
    {
        return tokenJSON[_tokenId];
    }

    function tokenURI(uint256 _tokenId) public view
        returns (string memory)
    {
        return uri(_tokenId);
    }

    function addToken(string memory _json) external
        onlyOwner
    {
        tokenTypeIndex += 1;
        tokenJSON[tokenTypeIndex] = _json;
        tokenIsFrozen[tokenTypeIndex] = false;
    }

    function updateTokenData(uint256 _tokenId, string memory _json) external
        onlyOwner
        tokenExists(_tokenId)
    {
        require(tokenIsFrozen[_tokenId] == false, "Token is frozen.");
        tokenJSON[_tokenId] = _json;
    }

    function freezeTokenData(uint256 _tokenId) external
        onlyOwner
        tokenExists(_tokenId)
    {
        tokenIsFrozen[_tokenId] = true;
        emit PermanentURI(tokenJSON[_tokenId], _tokenId);
    }

    function setPrice(uint256 _price) external
        onlyOwner
    {
        price = _price;
    }

    function setSaleState(uint256 _saleState) external
        onlyOwner
    {
        saleState = _saleState;
    }

    function setSaleStartTime(uint256 _saleStartTime) external
        onlyOwner
    {
        startTimestamp = _saleStartTime;
    }

    function setBurnState(uint256 _burnState) external
        onlyOwner
    {
        burnState = _burnState;
    }

    function setMaxTokens(uint256 _maxTokens) external
        onlyOwner
    {
        maxTokens = _maxTokens;
    }

    function addBurnContractAddress(address _contractAddress) external
        onlyOwner
    {
        addressToCallWhenTokenIsBurnt.push(_contractAddress);
    }

    function removeBurnContractAddress(address _contractAddressToRemove) external
        onlyOwner
    {
        for (uint256 i = 0; i < addressToCallWhenTokenIsBurnt.length; i++){
            if (addressToCallWhenTokenIsBurnt[i] == _contractAddressToRemove) {
                if (i < addressToCallWhenTokenIsBurnt.length - 1) {
                    addressToCallWhenTokenIsBurnt[i] = addressToCallWhenTokenIsBurnt[addressToCallWhenTokenIsBurnt.length - 1];
                }
                addressToCallWhenTokenIsBurnt.pop();
                break;
            }
        }
    }
}

File 2 of 14 : RandomToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

// ____________      ______________   ____________      ______________   __
//|        \   \    /  |       \   |_/  \   _  \  \    /  |       \   |_/  \
//|   ___   |   |  |   |    ____|     __|  |_|  |  |  |   |    ____|      __|
//|  |   |  |   |  |   |   |         /         /   |  |   |   |          /
//|  |___|  |   |__|   |   |____     \__    _  \   |__|   |   |____      \__
//|         |          |        |   _   |  |_|  |         |        |    _   |
//|________/__________/________/___| \__|_______/_________/________/___| \__|

library RandomToken {

    function getRandomToken(address _mintAddress, uint256 _presents,
        string memory _externalTransactionId, uint256 _nonce, uint256 _modulus) public view returns (uint256) {

        uint256 _tokenId = (uint256(
            keccak256(
                abi.encodePacked(
                    block.timestamp,
                    block.difficulty,
                    _mintAddress,
                    _presents,
                    _externalTransactionId,
                    _nonce
                )
            )
        ) % _modulus) + 1;

        return _tokenId;
    }
}

File 3 of 14 : IDuckBuckNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// ____________      ______________   ____________      ______________   __
//|        \   \    /  |       \   |_/  \   _  \  \    /  |       \   |_/  \
//|   ___   |   |  |   |    ____|     __|  |_|  |  |  |   |    ____|      __|
//|  |   |  |   |  |   |   |         /         /   |  |   |   |          /
//|  |___|  |   |__|   |   |____     \__    _  \   |__|   |   |____      \__
//|         |          |        |   _   |  |_|  |         |        |    _   |
//|________/__________/________/___| \__|_______/_________/________/___| \__|

interface IDuckBuckNFT {

    function mintToken(address to, uint256 quantity) external;
}

File 4 of 14 : BlockTime.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";

// ____________      ______________   ____________      ______________   __
//|        \   \    /  |       \   |_/  \   _  \  \    /  |       \   |_/  \
//|   ___   |   |  |   |    ____|     __|  |_|  |  |  |   |    ____|      __|
//|  |   |  |   |  |   |   |         /         /   |  |   |   |          /
//|  |___|  |   |__|   |   |____     \__    _  \   |__|   |   |____      \__
//|         |          |        |   _   |  |_|  |         |        |    _   |
//|________/__________/________/___| \__|_______/_________/________/___| \__|

contract BlockTime is Ownable {

    uint256 testingState = 0;
    uint256 testBlockTimestamp = 0;

    function getTime() internal view returns (uint256) {
        if (testingState == 0) {
            return block.timestamp;
        } else {
            return testBlockTimestamp;
        }
    }

    function setBlockTimeTestingState(uint256 _testingState) external onlyOwner {
        testingState = _testingState;
    }

    function setBlockTime(uint256 _timestamp) external onlyOwner {
        testBlockTimestamp = _timestamp;
    }
}

File 5 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 6 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 7 of 14 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 8 of 14 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 14 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 10 of 14 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

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

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

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

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

File 11 of 14 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

File 12 of 14 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {
    "/contracts/RandomToken.sol": {
      "RandomToken": "0x278118eEfe88a1467B66eBE0D18AC6628426969E"
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_maxTokens","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"string","name":"_externalTransactionId","type":"string"},{"indexed":false,"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ExternalMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"PermanentURI","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":"_contractAddress","type":"address"}],"name":"addBurnContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_json","type":"string"}],"name":"addToken","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":[],"name":"burnState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_presentsToWrap","type":"uint256"},{"internalType":"string","name":"_externalTransactionId","type":"string"}],"name":"deliverPresentFromExternalTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"freezeTokenData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presents","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mintPresents","outputs":[],"stateMutability":"nonpayable","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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddressToRemove","type":"address"}],"name":"removeBurnContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"setBlockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_testingState","type":"uint256"}],"name":"setBlockTimeTestingState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_burnState","type":"uint256"}],"name":"setBurnState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokens","type":"uint256"}],"name":"setMaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleStartTime","type":"uint256"}],"name":"setSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleState","type":"uint256"}],"name":"setSaleState","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":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenTypeIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unwrapPresents","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"unwrapPresentsAutomate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_json","type":"string"}],"name":"updateTokenData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presents","type":"uint256"}],"name":"wrapPresents","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052600060055560006006556000600755600060085560006009556000600a556000600b556729a2241af62c0000600c556040518060400160405280601281526020017f4475636b204275636b2050726573656e74730000000000000000000000000000815250600d90805190602001906200008092919062000244565b506040518060400160405280600a81526020017f444250524553454e545300000000000000000000000000000000000000000000815250600e9080519060200190620000ce92919062000244565b506361993898601355348015620000e457600080fd5b5060405162005ed138038062005ed183398181016040528101906200010a919062000334565b604051806020016040528060008152506200012b816200015a60201b60201c565b506200014c620001406200017660201b60201c565b6200017e60201b60201c565b8060098190555050620003cb565b80600290805190602001906200017292919062000244565b5050565b600033905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002529062000395565b90600052602060002090601f016020900481019282620002765760008555620002c2565b82601f106200029157805160ff1916838001178555620002c2565b82800160010185558215620002c2579182015b82811115620002c1578251825591602001919060010190620002a4565b5b509050620002d19190620002d5565b5090565b5b80821115620002f0576000816000905550600101620002d6565b5090565b600080fd5b6000819050919050565b6200030e81620002f9565b81146200031a57600080fd5b50565b6000815190506200032e8162000303565b92915050565b6000602082840312156200034d576200034c620002f4565b5b60006200035d848285016200031d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003ae57607f821691505b60208210811415620003c557620003c462000366565b5b50919050565b615af680620003db6000396000f3fe60806040526004361061022f5760003560e01c806386f20ecf1161012e578063d082e381116100ab578063f242432a1161006f578063f242432a1461082c578063f2fde38b14610855578063f303e2631461087e578063f328f191146108a7578063f97913a8146108d05761022f565b8063d082e38114610747578063e831574214610772578063e985e9c51461079d578063ebbe97d8146107da578063ede863d5146108035761022f565b80639c2cd13d116100f25780639c2cd13d14610650578063a035b1fe14610679578063a22cb465146106a4578063bd85b039146106cd578063c87b56dd1461070a5761022f565b806386f20ecf1461057f5780638ce26108146105a85780638da5cb5b146105d157806391b7f5ed146105fc57806395d89b41146106255761022f565b80634f558e79116101bc578063603f4d5211610180578063603f4d52146104cf57806360bd0b23146104fa578063715018a614610523578063758b1ce31461053a57806383bc548f146105635761022f565b80634f558e79146103f9578063525f8a5c1461043657806352e54e491461045f578063539772811461047b5780635e131e78146104a45761022f565b80630e89341c116102035780630e89341c1461030257806311e776fe1461033f578063269d9e92146103685780632eb2c2d6146103935780634e1273f4146103bc5761022f565b8062fdd58e1461023457806301ffc9a71461027157806306fdde03146102ae578063084c4088146102d9575b600080fd5b34801561024057600080fd5b5061025b600480360381019061025691906139c6565b6108f9565b6040516102689190613a15565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190613a88565b6109c2565b6040516102a59190613ad0565b60405180910390f35b3480156102ba57600080fd5b506102c3610aa4565b6040516102d09190613b84565b60405180910390f35b3480156102e557600080fd5b5061030060048036038101906102fb9190613ba6565b610b32565b005b34801561030e57600080fd5b5061032960048036038101906103249190613ba6565b610bb8565b6040516103369190613b84565b60405180910390f35b34801561034b57600080fd5b5061036660048036038101906103619190613ba6565b610cb0565b005b34801561037457600080fd5b5061037d610d36565b60405161038a9190613a15565b60405180910390f35b34801561039f57600080fd5b506103ba60048036038101906103b59190613dd0565b610d3c565b005b3480156103c857600080fd5b506103e360048036038101906103de9190613f62565b610ddd565b6040516103f09190614098565b60405180910390f35b34801561040557600080fd5b50610420600480360381019061041b9190613ba6565b610ef6565b60405161042d9190613ad0565b60405180910390f35b34801561044257600080fd5b5061045d60048036038101906104589190613ba6565b610f0a565b005b6104796004803603810190610474919061416b565b610f90565b005b34801561048757600080fd5b506104a2600480360381019061049d9190614256565b611259565b005b3480156104b057600080fd5b506104b961155a565b6040516104c69190613a15565b60405180910390f35b3480156104db57600080fd5b506104e4611560565b6040516104f19190613a15565b60405180910390f35b34801561050657600080fd5b50610521600480360381019061051c91906142ca565b611566565b005b34801561052f57600080fd5b50610538611626565b005b34801561054657600080fd5b50610561600480360381019061055c9190613ba6565b6116ae565b005b61057d60048036038101906105789190613ba6565b611734565b005b34801561058b57600080fd5b506105a660048036038101906105a19190613ba6565b61194a565b005b3480156105b457600080fd5b506105cf60048036038101906105ca91906143ab565b6119d0565b005b3480156105dd57600080fd5b506105e6611ac1565b6040516105f39190614403565b60405180910390f35b34801561060857600080fd5b50610623600480360381019061061e9190613ba6565b611aeb565b005b34801561063157600080fd5b5061063a611b71565b6040516106479190613b84565b60405180910390f35b34801561065c57600080fd5b506106776004803603810190610672919061441e565b611bff565b005b34801561068557600080fd5b5061068e611e26565b60405161069b9190613a15565b60405180910390f35b3480156106b057600080fd5b506106cb60048036038101906106c69190614477565b611e2c565b005b3480156106d957600080fd5b506106f460048036038101906106ef9190613ba6565b611fad565b6040516107019190613a15565b60405180910390f35b34801561071657600080fd5b50610731600480360381019061072c9190613ba6565b611fca565b60405161073e9190613b84565b60405180910390f35b34801561075357600080fd5b5061075c611fdc565b6040516107699190613a15565b60405180910390f35b34801561077e57600080fd5b50610787611fe2565b6040516107949190613a15565b60405180910390f35b3480156107a957600080fd5b506107c460048036038101906107bf91906144b7565b611fe8565b6040516107d19190613ad0565b60405180910390f35b3480156107e657600080fd5b5061080160048036038101906107fc919061441e565b61207c565b005b34801561080f57600080fd5b5061082a600480360381019061082591906142ca565b61215e565b005b34801561083857600080fd5b50610853600480360381019061084e91906144f7565b612219565b005b34801561086157600080fd5b5061087c6004803603810190610877919061441e565b6122ba565b005b34801561088a57600080fd5b506108a560048036038101906108a0919061458e565b6123b2565b005b3480156108b357600080fd5b506108ce60048036038101906108c99190613ba6565b612514565b005b3480156108dc57600080fd5b506108f760048036038101906108f29190613ba6565b61259a565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561096a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109619061465c565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a8d57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a9d5750610a9c826126e2565b5b9050919050565b600d8054610ab1906146ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610add906146ab565b8015610b2a5780601f10610aff57610100808354040283529160200191610b2a565b820191906000526020600020905b815481529060010190602001808311610b0d57829003601f168201915b505050505081565b610b3a61274c565b73ffffffffffffffffffffffffffffffffffffffff16610b58611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614610bae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba590614729565b60405180910390fd5b8060078190555050565b606081600081118015610bcd5750600a548111155b610c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0390614795565b60405180910390fd5b600f60008481526020019081526020016000208054610c2a906146ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610c56906146ab565b8015610ca35780601f10610c7857610100808354040283529160200191610ca3565b820191906000526020600020905b815481529060010190602001808311610c8657829003601f168201915b5050505050915050919050565b610cb861274c565b73ffffffffffffffffffffffffffffffffffffffff16610cd6611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614610d2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2390614729565b60405180910390fd5b8060098190555050565b60085481565b610d4461274c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610d8a5750610d8985610d8461274c565b611fe8565b5b610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc090614827565b60405180910390fd5b610dd68585858585612754565b5050505050565b60608151835114610e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1a906148b9565b60405180910390fd5b6000835167ffffffffffffffff811115610e4057610e3f613bd8565b5b604051908082528060200260200182016040528015610e6e5781602001602082028036833780820191505090505b50905060005b8451811015610eeb57610ebb858281518110610e9357610e926148d9565b5b6020026020010151858381518110610eae57610ead6148d9565b5b60200260200101516108f9565b828281518110610ece57610ecd6148d9565b5b60200260200101818152505080610ee490614937565b9050610e74565b508091505092915050565b600080610f0283611fad565b119050919050565b610f1261274c565b73ffffffffffffffffffffffffffffffffffffffff16610f30611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614610f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7d90614729565b60405180910390fd5b8060138190555050565b610f9861274c565b73ffffffffffffffffffffffffffffffffffffffff16610fb6611ac1565b73ffffffffffffffffffffffffffffffffffffffff161461100c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100390614729565b60405180910390fd5b8060008111801561101f5750600a548111155b61105e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105590614795565b60405180910390fd5b6001600854146110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109a906149cc565b60405180910390fd5b60008686905090508484905081146110f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e790614a5e565b60405180910390fd5b60005b8181101561119a5785858281811061110e5761110d6148d9565b5b9050602002013561114689898481811061112b5761112a6148d9565b5b9050602002016020810190611140919061441e565b866108f9565b1015611187576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117e90614af0565b60405180910390fd5b808061119290614937565b9150506110f3565b5060005b8181101561124f576111f18888838181106111bc576111bb6148d9565b5b90506020020160208101906111d1919061441e565b858888858181106111e5576111e46148d9565b5b90506020020135612a68565b61123c888883818110611207576112066148d9565b5b905060200201602081019061121c919061441e565b87878481811061122f5761122e6148d9565b5b9050602002013586612aa2565b808061124790614937565b91505061119e565b5050505050505050565b61126161274c565b73ffffffffffffffffffffffffffffffffffffffff1661127f611ac1565b73ffffffffffffffffffffffffffffffffffffffff16146112d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cc90614729565b60405180910390fd5b600954600b54846112e69190614b10565b1115611327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131e90614bb2565b60405180910390fd5b600082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505090506000815114156114145761140f8585600d805461138c906146ab565b80601f01602080910402602001604051908101604052809291908181526020018280546113b8906146ab565b80156114055780601f106113da57610100808354040283529160200191611405565b820191906000526020600020905b8154815290600101906020018083116113e857829003601f168201915b5050505050612b8f565b611553565b600060118484604051611428929190614c02565b90815260200160405180910390205414611477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146e90614c8d565b60405180910390fd5b6114c6858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612b8f565b6001601184846040516114da929190614c02565b90815260200160405180910390208190555082826040516114fc929190614c02565b60405180910390208573ffffffffffffffffffffffffffffffffffffffff167f552b33e416aa476e2c752866f465266de527ec7fe0802f063e335d6b37ec2e5c8660405161154a9190613a15565b60405180910390a35b5050505050565b600a5481565b60075481565b816000811180156115795750600a548111155b6115b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115af90614795565b60405180910390fd5b6001600854146115fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f4906149cc565b60405180910390fd5b61160f61160861274c565b8484612a68565b61162161161a61274c565b8385612aa2565b505050565b61162e61274c565b73ffffffffffffffffffffffffffffffffffffffff1661164c611ac1565b73ffffffffffffffffffffffffffffffffffffffff16146116a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169990614729565b60405180910390fd5b6116ac6000612cc4565b565b6116b661274c565b73ffffffffffffffffffffffffffffffffffffffff166116d4611ac1565b73ffffffffffffffffffffffffffffffffffffffff161461172a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172190614729565b60405180910390fd5b8060068190555050565b60135461173f612d8a565b1015611780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177790614cf9565b60405180910390fd5b6001600754146117c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bc90614d65565b60405180910390fd5b6001811015611809576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180090614df7565b60405180910390fd5b600954600b548261181a9190614b10565b111561185b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185290614bb2565b60405180910390fd5b80600c546118699190614e17565b3410156118ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a290614ebd565b60405180910390fd5b6119476118b661274c565b82600d80546118c4906146ab565b80601f01602080910402602001604051908101604052809291908181526020018280546118f0906146ab565b801561193d5780601f106119125761010080835404028352916020019161193d565b820191906000526020600020905b81548152906001019060200180831161192057829003601f168201915b5050505050612b8f565b50565b61195261274c565b73ffffffffffffffffffffffffffffffffffffffff16611970611ac1565b73ffffffffffffffffffffffffffffffffffffffff16146119c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bd90614729565b60405180910390fd5b8060058190555050565b6119d861274c565b73ffffffffffffffffffffffffffffffffffffffff166119f6611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614611a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4390614729565b60405180910390fd5b6001600a6000828254611a5f9190614b10565b9250508190555080600f6000600a5481526020019081526020016000209080519060200190611a8f92919061387b565b50600060106000600a54815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611af361274c565b73ffffffffffffffffffffffffffffffffffffffff16611b11611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614611b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5e90614729565b60405180910390fd5b80600c8190555050565b600e8054611b7e906146ab565b80601f0160208091040260200160405190810160405280929190818152602001828054611baa906146ab565b8015611bf75780601f10611bcc57610100808354040283529160200191611bf7565b820191906000526020600020905b815481529060010190602001808311611bda57829003601f168201915b505050505081565b611c0761274c565b73ffffffffffffffffffffffffffffffffffffffff16611c25611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614611c7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7290614729565b60405180910390fd5b60005b601280549050811015611e22578173ffffffffffffffffffffffffffffffffffffffff1660128281548110611cb657611cb56148d9565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611e0f576001601280549050611d0f9190614edd565b811015611dc35760126001601280549050611d2a9190614edd565b81548110611d3b57611d3a6148d9565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660128281548110611d7a57611d796148d9565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6012805480611dd557611dd4614f11565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055611e22565b8080611e1a90614937565b915050611c7e565b5050565b600c5481565b8173ffffffffffffffffffffffffffffffffffffffff16611e4b61274c565b73ffffffffffffffffffffffffffffffffffffffff161415611ea2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9990614fb2565b60405180910390fd5b8060016000611eaf61274c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f5c61274c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fa19190613ad0565b60405180910390a35050565b600060036000838152602001908152602001600020549050919050565b6060611fd582610bb8565b9050919050565b600b5481565b60095481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61208461274c565b73ffffffffffffffffffffffffffffffffffffffff166120a2611ac1565b73ffffffffffffffffffffffffffffffffffffffff16146120f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ef90614729565b60405180910390fd5b6012819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61216661274c565b73ffffffffffffffffffffffffffffffffffffffff16612184611ac1565b73ffffffffffffffffffffffffffffffffffffffff16146121da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d190614729565b60405180910390fd5b81600b60008282546121ec9190614b10565b925050819055506122156121fe61274c565b828460405180602001604052806000815250612da7565b5050565b61222161274c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061226757506122668561226161274c565b611fe8565b5b6122a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229d90615044565b60405180910390fd5b6122b38585858585612de3565b5050505050565b6122c261274c565b73ffffffffffffffffffffffffffffffffffffffff166122e0611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614612336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232d90614729565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239d906150d6565b60405180910390fd5b6123af81612cc4565b50565b6123ba61274c565b73ffffffffffffffffffffffffffffffffffffffff166123d8611ac1565b73ffffffffffffffffffffffffffffffffffffffff161461242e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242590614729565b60405180910390fd5b816000811180156124415750600a548111155b612480576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247790614795565b60405180910390fd5b600015156010600085815260200190815260200160002060009054906101000a900460ff161515146124e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124de90615142565b60405180910390fd5b81600f6000858152602001908152602001600020908051906020019061250e92919061387b565b50505050565b61251c61274c565b73ffffffffffffffffffffffffffffffffffffffff1661253a611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614612590576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258790614729565b60405180910390fd5b8060088190555050565b6125a261274c565b73ffffffffffffffffffffffffffffffffffffffff166125c0611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614612616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260d90614729565b60405180910390fd5b806000811180156126295750600a548111155b612668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265f90614795565b60405180910390fd5b60016010600084815260200190815260200160002060006101000a81548160ff021916908315150217905550817fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207600f60008581526020019081526020016000206040516126d691906151f7565b60405180910390a25050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b8151835114612798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278f9061528b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612808576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ff9061531d565b60405180910390fd5b600061281261274c565b9050612822818787878787613065565b60005b84518110156129d3576000858281518110612843576128426148d9565b5b602002602001015190506000858381518110612862576128616148d9565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612903576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128fa906153af565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129b89190614b10565b92505081905550505050806129cc90614937565b9050612825565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612a4a9291906153cf565b60405180910390a4612a6081878787878761306d565b505050505050565b612a73838383613254565b80600360008481526020019081526020016000206000828254612a969190614edd565b92505081905550505050565b6003811415612abb57600282612ab89190614e17565b91505b60005b601280549050811015612b895760128181548110612adf57612ade6148d9565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379c6506885856040518363ffffffff1660e01b8152600401612b44929190615406565b600060405180830381600087803b158015612b5e57600080fd5b505af1158015612b72573d6000803e3d6000fd5b505050508080612b8190614937565b915050612abe565b50505050565b6000600a5411612bd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bcb9061547b565b60405180910390fd5b60005b82811015612cbe57600b6000815480929190612bf290614937565b9190505550600073278118eefe88a1467b66ebe0d18ac6628426969e6334a1650f868686600b54600a546040518663ffffffff1660e01b8152600401612c3c959493929190615503565b60206040518083038186803b158015612c5457600080fd5b505af4158015612c68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8c9190615572565b9050612caa8582600160405180602001604052806000815250612da7565b508080612cb690614937565b915050612bd7565b50505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000806005541415612d9e57429050612da4565b60065490505b90565b612db384848484613471565b81600360008581526020019081526020016000206000828254612dd69190614b10565b9250508190555050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4a9061531d565b60405180910390fd5b6000612e5d61274c565b9050612e7d818787612e6e88613607565b612e7788613607565b87613065565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015612f14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0b906153af565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fc99190614b10565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62888860405161304692919061559f565b60405180910390a461305c828888888888613681565b50505050505050565b505050505050565b61308c8473ffffffffffffffffffffffffffffffffffffffff16613868565b1561324c578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016130d295949392919061561d565b602060405180830381600087803b1580156130ec57600080fd5b505af192505050801561311d57506040513d601f19601f8201168201806040525081019061311a919061569a565b60015b6131c3576131296156d4565b806308c379a01415613186575061313e6156f6565b806131495750613188565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317d9190613b84565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ba906157fe565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461324a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324190615890565b60405180910390fd5b505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156132c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132bb90615922565b60405180910390fd5b60006132ce61274c565b90506132fe818560006132e087613607565b6132e987613607565b60405180602001604052806000815250613065565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015613395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161338c906159b4565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62878760405161346292919061559f565b60405180910390a45050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156134e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d890615a46565b60405180910390fd5b60006134eb61274c565b905061350c816000876134fd88613607565b61350688613607565b87613065565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461356b9190614b10565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516135e992919061559f565b60405180910390a461360081600087878787613681565b5050505050565b60606000600167ffffffffffffffff81111561362657613625613bd8565b5b6040519080825280602002602001820160405280156136545781602001602082028036833780820191505090505b509050828160008151811061366c5761366b6148d9565b5b60200260200101818152505080915050919050565b6136a08473ffffffffffffffffffffffffffffffffffffffff16613868565b15613860578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016136e6959493929190615a66565b602060405180830381600087803b15801561370057600080fd5b505af192505050801561373157506040513d601f19601f8201168201806040525081019061372e919061569a565b60015b6137d75761373d6156d4565b806308c379a0141561379a57506137526156f6565b8061375d575061379c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137919190613b84565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137ce906157fe565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461385e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161385590615890565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b828054613887906146ab565b90600052602060002090601f0160209004810192826138a957600085556138f0565b82601f106138c257805160ff19168380011785556138f0565b828001600101855582156138f0579182015b828111156138ef5782518255916020019190600101906138d4565b5b5090506138fd9190613901565b5090565b5b8082111561391a576000816000905550600101613902565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061395d82613932565b9050919050565b61396d81613952565b811461397857600080fd5b50565b60008135905061398a81613964565b92915050565b6000819050919050565b6139a381613990565b81146139ae57600080fd5b50565b6000813590506139c08161399a565b92915050565b600080604083850312156139dd576139dc613928565b5b60006139eb8582860161397b565b92505060206139fc858286016139b1565b9150509250929050565b613a0f81613990565b82525050565b6000602082019050613a2a6000830184613a06565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613a6581613a30565b8114613a7057600080fd5b50565b600081359050613a8281613a5c565b92915050565b600060208284031215613a9e57613a9d613928565b5b6000613aac84828501613a73565b91505092915050565b60008115159050919050565b613aca81613ab5565b82525050565b6000602082019050613ae56000830184613ac1565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b25578082015181840152602081019050613b0a565b83811115613b34576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b5682613aeb565b613b608185613af6565b9350613b70818560208601613b07565b613b7981613b3a565b840191505092915050565b60006020820190508181036000830152613b9e8184613b4b565b905092915050565b600060208284031215613bbc57613bbb613928565b5b6000613bca848285016139b1565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c1082613b3a565b810181811067ffffffffffffffff82111715613c2f57613c2e613bd8565b5b80604052505050565b6000613c4261391e565b9050613c4e8282613c07565b919050565b600067ffffffffffffffff821115613c6e57613c6d613bd8565b5b602082029050602081019050919050565b600080fd5b6000613c97613c9284613c53565b613c38565b90508083825260208201905060208402830185811115613cba57613cb9613c7f565b5b835b81811015613ce35780613ccf88826139b1565b845260208401935050602081019050613cbc565b5050509392505050565b600082601f830112613d0257613d01613bd3565b5b8135613d12848260208601613c84565b91505092915050565b600080fd5b600067ffffffffffffffff821115613d3b57613d3a613bd8565b5b613d4482613b3a565b9050602081019050919050565b82818337600083830152505050565b6000613d73613d6e84613d20565b613c38565b905082815260208101848484011115613d8f57613d8e613d1b565b5b613d9a848285613d51565b509392505050565b600082601f830112613db757613db6613bd3565b5b8135613dc7848260208601613d60565b91505092915050565b600080600080600060a08688031215613dec57613deb613928565b5b6000613dfa8882890161397b565b9550506020613e0b8882890161397b565b945050604086013567ffffffffffffffff811115613e2c57613e2b61392d565b5b613e3888828901613ced565b935050606086013567ffffffffffffffff811115613e5957613e5861392d565b5b613e6588828901613ced565b925050608086013567ffffffffffffffff811115613e8657613e8561392d565b5b613e9288828901613da2565b9150509295509295909350565b600067ffffffffffffffff821115613eba57613eb9613bd8565b5b602082029050602081019050919050565b6000613ede613ed984613e9f565b613c38565b90508083825260208201905060208402830185811115613f0157613f00613c7f565b5b835b81811015613f2a5780613f16888261397b565b845260208401935050602081019050613f03565b5050509392505050565b600082601f830112613f4957613f48613bd3565b5b8135613f59848260208601613ecb565b91505092915050565b60008060408385031215613f7957613f78613928565b5b600083013567ffffffffffffffff811115613f9757613f9661392d565b5b613fa385828601613f34565b925050602083013567ffffffffffffffff811115613fc457613fc361392d565b5b613fd085828601613ced565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61400f81613990565b82525050565b60006140218383614006565b60208301905092915050565b6000602082019050919050565b600061404582613fda565b61404f8185613fe5565b935061405a83613ff6565b8060005b8381101561408b5781516140728882614015565b975061407d8361402d565b92505060018101905061405e565b5085935050505092915050565b600060208201905081810360008301526140b2818461403a565b905092915050565b600080fd5b60008083601f8401126140d5576140d4613bd3565b5b8235905067ffffffffffffffff8111156140f2576140f16140ba565b5b60208301915083602082028301111561410e5761410d613c7f565b5b9250929050565b60008083601f84011261412b5761412a613bd3565b5b8235905067ffffffffffffffff811115614148576141476140ba565b5b60208301915083602082028301111561416457614163613c7f565b5b9250929050565b60008060008060006060868803121561418757614186613928565b5b600086013567ffffffffffffffff8111156141a5576141a461392d565b5b6141b1888289016140bf565b9550955050602086013567ffffffffffffffff8111156141d4576141d361392d565b5b6141e088828901614115565b935093505060406141f3888289016139b1565b9150509295509295909350565b60008083601f84011261421657614215613bd3565b5b8235905067ffffffffffffffff811115614233576142326140ba565b5b60208301915083600182028301111561424f5761424e613c7f565b5b9250929050565b600080600080606085870312156142705761426f613928565b5b600061427e8782880161397b565b945050602061428f878288016139b1565b935050604085013567ffffffffffffffff8111156142b0576142af61392d565b5b6142bc87828801614200565b925092505092959194509250565b600080604083850312156142e1576142e0613928565b5b60006142ef858286016139b1565b9250506020614300858286016139b1565b9150509250929050565b600067ffffffffffffffff82111561432557614324613bd8565b5b61432e82613b3a565b9050602081019050919050565b600061434e6143498461430a565b613c38565b90508281526020810184848401111561436a57614369613d1b565b5b614375848285613d51565b509392505050565b600082601f83011261439257614391613bd3565b5b81356143a284826020860161433b565b91505092915050565b6000602082840312156143c1576143c0613928565b5b600082013567ffffffffffffffff8111156143df576143de61392d565b5b6143eb8482850161437d565b91505092915050565b6143fd81613952565b82525050565b600060208201905061441860008301846143f4565b92915050565b60006020828403121561443457614433613928565b5b60006144428482850161397b565b91505092915050565b61445481613ab5565b811461445f57600080fd5b50565b6000813590506144718161444b565b92915050565b6000806040838503121561448e5761448d613928565b5b600061449c8582860161397b565b92505060206144ad85828601614462565b9150509250929050565b600080604083850312156144ce576144cd613928565b5b60006144dc8582860161397b565b92505060206144ed8582860161397b565b9150509250929050565b600080600080600060a0868803121561451357614512613928565b5b60006145218882890161397b565b95505060206145328882890161397b565b9450506040614543888289016139b1565b9350506060614554888289016139b1565b925050608086013567ffffffffffffffff8111156145755761457461392d565b5b61458188828901613da2565b9150509295509295909350565b600080604083850312156145a5576145a4613928565b5b60006145b3858286016139b1565b925050602083013567ffffffffffffffff8111156145d4576145d361392d565b5b6145e08582860161437d565b9150509250929050565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614646602b83613af6565b9150614651826145ea565b604082019050919050565b6000602082019050818103600083015261467581614639565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146c357607f821691505b602082108114156146d7576146d661467c565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614713602083613af6565b915061471e826146dd565b602082019050919050565b6000602082019050818103600083015261474281614706565b9050919050565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b600061477f601583613af6565b915061478a82614749565b602082019050919050565b600060208201905081810360008301526147ae81614772565b9050919050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614811603283613af6565b915061481c826147b5565b604082019050919050565b6000602082019050818103600083015261484081614804565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b60006148a3602983613af6565b91506148ae82614847565b604082019050919050565b600060208201905081810360008301526148d281614896565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061494282613990565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561497557614974614908565b5b600182019050919050565b7f43616e2774206f70656e2070726573656e747320796574210000000000000000600082015250565b60006149b6601883613af6565b91506149c182614980565b602082019050919050565b600060208201905081810360008301526149e5816149a9565b9050919050565b7f4172726179206c656e677468206d75737420626520657175616c20666f72206160008201527f646472657373657320616e6420616d6f756e7473000000000000000000000000602082015250565b6000614a48603483613af6565b9150614a53826149ec565b604082019050919050565b60006020820190508181036000830152614a7781614a3b565b9050919050565b7f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520746f206260008201527f75726e2e00000000000000000000000000000000000000000000000000000000602082015250565b6000614ada602483613af6565b9150614ae582614a7e565b604082019050919050565b60006020820190508181036000830152614b0981614acd565b9050919050565b6000614b1b82613990565b9150614b2683613990565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b5b57614b5a614908565b5b828201905092915050565b7f52756e6e696e67206f7574206f662070726573656e74732e0000000000000000600082015250565b6000614b9c601883613af6565b9150614ba782614b66565b602082019050919050565b60006020820190508181036000830152614bcb81614b8f565b9050919050565b600081905092915050565b6000614be98385614bd2565b9350614bf6838584613d51565b82840190509392505050565b6000614c0f828486614bdd565b91508190509392505050565b7f45787465726e616c207472616e73616374696f6e2068617320616c726561647960008201527f206265656e206d696e7465642e00000000000000000000000000000000000000602082015250565b6000614c77602d83613af6565b9150614c8282614c1b565b604082019050919050565b60006020820190508181036000830152614ca681614c6a565b9050919050565b7f546f6f206561726c7920666f72204368726973746d61732e0000000000000000600082015250565b6000614ce3601883613af6565b9150614cee82614cad565b602082019050919050565b60006020820190508181036000830152614d1281614cd6565b9050919050565b7f5772617070696e672073686f70206861736e2774206f70656e6564207965742e600082015250565b6000614d4f602083613af6565b9150614d5a82614d19565b602082019050919050565b60006020820190508181036000830152614d7e81614d42565b9050919050565b7f596f75206861766520746f2077726170206174206c65617374206f6e6520707260008201527f6573656e74210000000000000000000000000000000000000000000000000000602082015250565b6000614de1602683613af6565b9150614dec82614d85565b604082019050919050565b60006020820190508181036000830152614e1081614dd4565b9050919050565b6000614e2282613990565b9150614e2d83613990565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e6657614e65614908565b5b828202905092915050565b7f4d6f7265206d61746963206e656564656420746f207772617020746865736521600082015250565b6000614ea7602083613af6565b9150614eb282614e71565b602082019050919050565b60006020820190508181036000830152614ed681614e9a565b9050919050565b6000614ee882613990565b9150614ef383613990565b925082821015614f0657614f05614908565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614f9c602983613af6565b9150614fa782614f40565b604082019050919050565b60006020820190508181036000830152614fcb81614f8f565b9050919050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b600061502e602983613af6565b915061503982614fd2565b604082019050919050565b6000602082019050818103600083015261505d81615021565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006150c0602683613af6565b91506150cb82615064565b604082019050919050565b600060208201905081810360008301526150ef816150b3565b9050919050565b7f546f6b656e2069732066726f7a656e2e00000000000000000000000000000000600082015250565b600061512c601083613af6565b9150615137826150f6565b602082019050919050565b6000602082019050818103600083015261515b8161511f565b9050919050565b60008190508160005260206000209050919050565b60008154615184816146ab565b61518e8186613af6565b945060018216600081146151a957600181146151bb576151ee565b60ff19831686526020860193506151ee565b6151c485615162565b60005b838110156151e6578154818901526001820191506020810190506151c7565b808801955050505b50505092915050565b600060208201905081810360008301526152118184615177565b905092915050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000615275602883613af6565b915061528082615219565b604082019050919050565b600060208201905081810360008301526152a481615268565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615307602583613af6565b9150615312826152ab565b604082019050919050565b60006020820190508181036000830152615336816152fa565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000615399602a83613af6565b91506153a48261533d565b604082019050919050565b600060208201905081810360008301526153c88161538c565b9050919050565b600060408201905081810360008301526153e9818561403a565b905081810360208301526153fd818461403a565b90509392505050565b600060408201905061541b60008301856143f4565b6154286020830184613a06565b9392505050565b7f4e6f20746f6b656e73206172652073657420746f206d696e742e000000000000600082015250565b6000615465601a83613af6565b91506154708261542f565b602082019050919050565b6000602082019050818103600083015261549481615458565b9050919050565b6154a481613952565b82525050565b6154b381613990565b82525050565b600082825260208201905092915050565b60006154d582613aeb565b6154df81856154b9565b93506154ef818560208601613b07565b6154f881613b3a565b840191505092915050565b600060a082019050615518600083018861549b565b61552560208301876154aa565b818103604083015261553781866154ca565b905061554660608301856154aa565b61555360808301846154aa565b9695505050505050565b60008151905061556c8161399a565b92915050565b60006020828403121561558857615587613928565b5b60006155968482850161555d565b91505092915050565b60006040820190506155b46000830185613a06565b6155c16020830184613a06565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006155ef826155c8565b6155f981856155d3565b9350615609818560208601613b07565b61561281613b3a565b840191505092915050565b600060a08201905061563260008301886143f4565b61563f60208301876143f4565b8181036040830152615651818661403a565b90508181036060830152615665818561403a565b9050818103608083015261567981846155e4565b90509695505050505050565b60008151905061569481613a5c565b92915050565b6000602082840312156156b0576156af613928565b5b60006156be84828501615685565b91505092915050565b60008160e01c9050919050565b600060033d11156156f35760046000803e6156f06000516156c7565b90505b90565b600060443d101561570657615789565b61570e61391e565b60043d036004823e80513d602482011167ffffffffffffffff82111715615736575050615789565b808201805167ffffffffffffffff8111156157545750505050615789565b80602083010160043d038501811115615771575050505050615789565b61578082602001850186613c07565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006157e8603483613af6565b91506157f38261578c565b604082019050919050565b60006020820190508181036000830152615817816157db565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b600061587a602883613af6565b91506158858261581e565b604082019050919050565b600060208201905081810360008301526158a98161586d565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061590c602383613af6565b9150615917826158b0565b604082019050919050565b6000602082019050818103600083015261593b816158ff565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b600061599e602483613af6565b91506159a982615942565b604082019050919050565b600060208201905081810360008301526159cd81615991565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000615a30602183613af6565b9150615a3b826159d4565b604082019050919050565b60006020820190508181036000830152615a5f81615a23565b9050919050565b600060a082019050615a7b60008301886143f4565b615a8860208301876143f4565b615a956040830186613a06565b615aa26060830185613a06565b8181036080830152615ab481846155e4565b9050969550505050505056fea26469706673582212207607077fd50b39e2432a0bda72f73c36daa554473cea11f1261ce7a29ef36f2d64736f6c634300080900330000000000000000000000000000000000000000000000000000000000004e20

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

0000000000000000000000000000000000000000000000000000000000004e20

-----Decoded View---------------
Arg [0] : _maxTokens (uint256): 20000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000004e20


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading