ETH Price: $3,403.44 (+2.06%)

Contract

0x37582c3B14ECBbe085BFDBf83f4BEc1D82c1d355
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...215045852024-12-29 0:36:5910 hrs ago1735432619IN
0x37582c3B...D82c1d355
0 ETH0.000236835.06982046
Set Approval For...214586292024-12-22 14:27:236 days ago1734877643IN
0x37582c3B...D82c1d355
0 ETH0.000387048.30009771
Set Approval For...214548362024-12-22 1:44:597 days ago1734831899IN
0x37582c3B...D82c1d355
0 ETH0.000309146.62956523
Set Approval For...214546802024-12-22 1:13:357 days ago1734830015IN
0x37582c3B...D82c1d355
0 ETH0.000267565.73796257
Safe Transfer Fr...214546692024-12-22 1:11:237 days ago1734829883IN
0x37582c3B...D82c1d355
0 ETH0.000348736.5
Set Approval For...213306612024-12-04 17:35:1124 days ago1733333711IN
0x37582c3B...D82c1d355
0 ETH0.0008140732.82157339
Set Approval For...211629952024-11-11 7:37:4748 days ago1731310667IN
0x37582c3B...D82c1d355
0 ETH0.0005981812.80498841
Set Approval For...209485412024-10-12 9:10:1178 days ago1728724211IN
0x37582c3B...D82c1d355
0 ETH0.000393698.44283383
Set Approval For...209434672024-10-11 16:07:5978 days ago1728662879IN
0x37582c3B...D82c1d355
0 ETH0.001359229.14803118
Safe Transfer Fr...208832762024-10-03 6:44:3587 days ago1727937875IN
0x37582c3B...D82c1d355
0 ETH0.000188413.51593695
Set Approval For...208551762024-09-29 8:43:4791 days ago1727599427IN
0x37582c3B...D82c1d355
0 ETH0.000216188.74568313
Set Approval For...208551742024-09-29 8:43:2391 days ago1727599403IN
0x37582c3B...D82c1d355
0 ETH0.000214138.6335783
Set Approval For...207996422024-09-21 14:46:5998 days ago1726930019IN
0x37582c3B...D82c1d355
0 ETH0.0016404135.11546501
Set Approval For...207309602024-09-12 0:29:59108 days ago1726100999IN
0x37582c3B...D82c1d355
0 ETH0.000113732.43474643
Set Approval For...207220672024-09-10 18:42:11109 days ago1725993731IN
0x37582c3B...D82c1d355
0 ETH0.000357537.66729988
Set Approval For...203926642024-07-26 18:58:23155 days ago1722020303IN
0x37582c3B...D82c1d355
0 ETH0.000093262
Set Approval For...203892932024-07-26 7:40:47156 days ago1721979647IN
0x37582c3B...D82c1d355
0 ETH0.000112152.4051766
Set Approval For...203892032024-07-26 7:22:47156 days ago1721978567IN
0x37582c3B...D82c1d355
0 ETH0.00006072.45570778
Set Approval For...202657582024-07-09 1:48:47173 days ago1720489727IN
0x37582c3B...D82c1d355
0 ETH0.000092561.98145092
Set Approval For...201744912024-06-26 7:52:47186 days ago1719388367IN
0x37582c3B...D82c1d355
0 ETH0.000099452.1288781
Safe Transfer Fr...201694452024-06-25 14:58:35186 days ago1719327515IN
0x37582c3B...D82c1d355
0 ETH0.0005275412.75739516
Set Approval For...201619412024-06-24 13:48:47187 days ago1719236927IN
0x37582c3B...D82c1d355
0 ETH0.000303076.49947945
Set Approval For...201536462024-06-23 9:58:59189 days ago1719136739IN
0x37582c3B...D82c1d355
0 ETH0.000096032.05633882
Set Approval For...201467392024-06-22 10:46:23189 days ago1719053183IN
0x37582c3B...D82c1d355
0 ETH0.000054152.18334089
Set Approval For...201380442024-06-21 5:36:23191 days ago1718948183IN
0x37582c3B...D82c1d355
0 ETH0.000078033.14618256
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
159842882022-11-16 18:12:11773 days ago1668622331
0x37582c3B...D82c1d355
0.00329614 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Serum

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/d5ca39e9a264ddcadd5742484b6d391ae1647a10/contracts/utils/cryptography/MerkleProof.sol";
import "./library/SafeMath.sol";
import "./interfaces/RAYC.sol";

contract Serum is ERC1155, Ownable, IERC1155Receiver {
    using Strings for uint256;
    using SafeMath for uint256;

    string public name = "Z1 Serum";
    string public symbol = "Z1";
    address public raycAddress;
    address public appointee;
    bytes32 public merkleRoot =
        0x65a05a4c27a2d29465cb0f58076bcb3218d7341d0a420c517a7cfedc82b32b45;

    mapping(uint256 => bool) public claimed;
    mapping(uint256 => address) private ownerships;

    uint256 public claimStart = 1667509200; // 9pm UTC (5pm EST) Nov 3
    uint256 public claimEnd = 1668718800; //  9pm UTC (5pm EST) Nov 17
    uint256 public totalSupply;
    uint256 public burned;
    address public zombiesContractAddress;

    bool private burnDone;
    uint256 private constant maxSupply = 10_000;
    uint256 private constant Z1_SERUM = 0;
    string public baseUri = "ipfs://Qmc6YpE8myy2R8qUyTnBtzEW78nXRdFzKs2Dytf2iGsgT3/";

    function setBaseUri(string calldata _baseUri) public onlyOwner {
        baseUri = _baseUri;
    }

    constructor(address _raycAddress)
        ERC1155(string(abi.encodePacked(baseUri, "{id}", ".json")))
    {
        raycAddress = _raycAddress;
    }

    function claim(uint256[] calldata ids) public {
        require(!burnDone, "No claims after burn");
        require(tx.origin == msg.sender, "EOAs only");
        require(ids.length < 250, "Too many addresses");
        require(block.timestamp > claimStart, "Patience!");
        require(block.timestamp < claimEnd, "Too late!");

        checkApepesOwned();

        for (uint256 i = 0; i < ids.length; i++) {
            require(
                ownerships[ids[i]] == msg.sender,
                "Can't claim it if you don't own it"
            );
            require(claimed[ids[i]] != true, "Already claimed");
            claimed[ids[i]] = true;
        }

        _mint(msg.sender, Z1_SERUM, ids.length, abi.encodePacked(""));
        totalSupply += ids.length;
    }

    function claimForPrevious(
        bytes32[] calldata _merkleProof,
        address _recipient,
        uint256 _amount,
        uint256[] calldata _ids
    ) public {
        require(msg.sender == appointee, "Not allowed");
        require(_ids.length == _amount, "Length of ids is wrong");
        bytes32 leaf = keccak256(abi.encodePacked(_recipient, _amount, _ids));
        require(
            MerkleProof.verify(_merkleProof, merkleRoot, leaf),
            "Invalid proof."
        );

        for (uint256 i = 0; i < _ids.length; i++) {
            require(claimed[_ids[i]] != true, "Already claimed");
            claimed[_ids[i]] = true;
        }

        _mint(_recipient, Z1_SERUM, _ids.length, abi.encodePacked(""));
        totalSupply += _ids.length;
    }

    function setAppointee(address _address) public onlyOwner {
        appointee = _address;
    }

    function burnRemaining() public onlyOwner {
        require(!burnDone, "Already burned.");

        uint256 remaining = maxSupply - totalSupply;
        burned = remaining;

        _mint(
            address(this),
            Z1_SERUM,
            remaining,
            abi.encodePacked("burn,baby,burn")
        );
        _burn(address(this), Z1_SERUM, remaining);
        burnDone = true;
    }

    function burn(address _address, uint256 _amount) public {
        require(
            msg.sender == zombiesContractAddress,
            "Not authorized to burn."
        );
        _burn(_address, Z1_SERUM, _amount);
        totalSupply = totalSupply - _amount;
    }

    function setMerkleRoot(bytes32 _root) public onlyOwner {
        merkleRoot = _root;
    }

    function setClaimStart(uint256 _claimStart) public onlyOwner {
        claimStart = _claimStart;
    }

    function setClaimEnd(uint256 _claimEnd) public onlyOwner {
        claimEnd = _claimEnd;
    }

    function checkApepesOwned() private {
        IRAYC rayc = IRAYC(raycAddress);
        uint256[] memory walletOfSender = rayc.walletOfOwner(msg.sender);
        for (uint256 i = 0; i < walletOfSender.length; i++) {
            ownerships[walletOfSender[i]] = msg.sender;
        }
    }

    function uri(uint256 _id) public view override returns (string memory) {
        require(_id == Z1_SERUM, "Type not recognized");
        return string(abi.encodePacked(baseUri, Z1_SERUM.toString(), ".json"));
    }

    function setZombiesContract(address _address) public onlyOwner {
        zombiesContractAddress = _address;
    }

    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes calldata
    ) external pure returns (bytes4) {
        return IERC1155Receiver.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] calldata,
        uint256[] calldata,
        bytes calldata
    ) external pure returns (bytes4) {
        return IERC1155Receiver.onERC1155BatchReceived.selector;
    }
}

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

interface IRAYC {
    function walletOfOwner(address _owner)
        external
        view
        returns (uint256[] memory);
}

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

library SafeMath {
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath#mul: OVERFLOW");

        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, "SafeMath#div: DIVISION_BY_ZERO");
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath#sub: UNDERFLOW");
        uint256 c = a - b;

        return c;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath#add: OVERFLOW");

        return c;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0, "SafeMath#mod: DIVISION_BY_ZERO");
        return a % b;
    }
}

File 4 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token 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: caller is not token owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

File 8 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(address(0));
    }

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must 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;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_raycAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"appointee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnRemaining","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"claimForPrevious","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raycAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setAppointee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimEnd","type":"uint256"}],"name":"setClaimEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"}],"name":"setClaimStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setZombiesContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zombiesContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526040518060400160405280600881526020017f5a3120536572756d000000000000000000000000000000000000000000000000815250600490816200004a919062000521565b506040518060400160405280600281526020017f5a310000000000000000000000000000000000000000000000000000000000008152506005908162000091919062000521565b507f65a05a4c27a2d29465cb0f58076bcb3218d7341d0a420c517a7cfedc82b32b4560001b6008556363642bd0600b55636376a0d0600c5560405180606001604052806036815260200162005e596036913960109081620000f3919062000521565b503480156200010157600080fd5b5060405162005e8f38038062005e8f833981810160405281019062000127919062000672565b60106040516020016200013b9190620007de565b6040516020818303038152906040526200015b81620001c460201b60201c565b506200017c62000170620001d960201b60201c565b620001e160201b60201c565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000811565b8060029081620001d5919062000521565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200032957607f821691505b6020821081036200033f576200033e620002e1565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003a97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200036a565b620003b586836200036a565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000402620003fc620003f684620003cd565b620003d7565b620003cd565b9050919050565b6000819050919050565b6200041e83620003e1565b620004366200042d8262000409565b84845462000377565b825550505050565b600090565b6200044d6200043e565b6200045a81848462000413565b505050565b5b8181101562000482576200047660008262000443565b60018101905062000460565b5050565b601f821115620004d1576200049b8162000345565b620004a6846200035a565b81016020851015620004b6578190505b620004ce620004c5856200035a565b8301826200045f565b50505b505050565b600082821c905092915050565b6000620004f660001984600802620004d6565b1980831691505092915050565b6000620005118383620004e3565b9150826002028217905092915050565b6200052c82620002a7565b67ffffffffffffffff811115620005485762000547620002b2565b5b62000554825462000310565b6200056182828562000486565b600060209050601f83116001811462000599576000841562000584578287015190505b62000590858262000503565b86555062000600565b601f198416620005a98662000345565b60005b82811015620005d357848901518255600182019150602085019450602081019050620005ac565b86831015620005f35784890151620005ef601f891682620004e3565b8355505b6001600288020188555050505b505050505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200063a826200060d565b9050919050565b6200064c816200062d565b81146200065857600080fd5b50565b6000815190506200066c8162000641565b92915050565b6000602082840312156200068b576200068a62000608565b5b60006200069b848285016200065b565b91505092915050565b600081905092915050565b60008154620006be8162000310565b620006ca8186620006a4565b94506001821660008114620006e85760018114620006fe5762000735565b60ff198316865281151582028601935062000735565b620007098562000345565b60005b838110156200072d578154818901526001820191506020810190506200070c565b838801955050505b50505092915050565b7f7b69647d00000000000000000000000000000000000000000000000000000000600082015250565b600062000776600483620006a4565b915062000783826200073e565b600482019050919050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000620007c6600583620006a4565b9150620007d3826200078e565b600582019050919050565b6000620007ec8284620006af565b9150620007f98262000767565b91506200080682620007b7565b915081905092915050565b61563880620008216000396000f3fe608060405234801561001057600080fd5b50600436106102105760003560e01c80638b5857f811610125578063cdbbd078116100ad578063e985e9c51161007c578063e985e9c5146105c7578063f04d688f146105f7578063f23a6e6114610615578063f242432a14610645578063f2fde38b1461066157610210565b8063cdbbd07814610553578063d18d761114610571578063d6a780041461058d578063dbe7e3bd1461059757610210565b80639dc29fac116100f45780639dc29fac146104b3578063a0bcfc7f146104cf578063a22cb465146104eb578063b0aa1e0414610507578063bc197c811461052357610210565b80638b5857f81461043b5780638da5cb5b1461045957806395d89b41146104775780639abc83201461049557610210565b80633b0243ee116101a85780636ba4c138116101775780636ba4c138146103bf578063715018a6146103db57806373f42561146103e557806374278547146104035780637cb647591461041f57610210565b80633b0243ee146103375780633ccfa92f146103555780634a1c86b7146103735780634e1273f41461038f57610210565b80630e89341c116101e45780630e89341c146102af57806318160ddd146102df5780632eb2c2d6146102fd5780632eb4a7ab1461031957610210565b8062fdd58e1461021557806301ffc9a71461024557806305d9f16b1461027557806306fdde0314610291575b600080fd5b61022f600480360381019061022a9190613058565b61067d565b60405161023c91906130a7565b60405180910390f35b61025f600480360381019061025a919061311a565b610745565b60405161026c9190613162565b60405180910390f35b61028f600480360381019061028a919061317d565b610827565b005b6102996108e7565b6040516102a6919061323a565b60405180910390f35b6102c960048036038101906102c4919061325c565b610975565b6040516102d6919061323a565b60405180910390f35b6102e76109ed565b6040516102f491906130a7565b60405180910390f35b61031760048036038101906103129190613486565b6109f3565b005b610321610a94565b60405161032e919061356e565b60405180910390f35b61033f610a9a565b60405161034c9190613598565b60405180910390f35b61035d610ac0565b60405161036a91906130a7565b60405180910390f35b61038d6004803603810190610388919061325c565b610ac6565b005b6103a960048036038101906103a49190613676565b610b4c565b6040516103b691906137ac565b60405180910390f35b6103d960048036038101906103d49190613829565b610c65565b005b6103e3610fe7565b005b6103ed61106f565b6040516103fa91906130a7565b60405180910390f35b61041d6004803603810190610418919061317d565b611075565b005b610439600480360381019061043491906138a2565b611135565b005b6104436111bb565b6040516104509190613598565b60405180910390f35b6104616111e1565b60405161046e9190613598565b60405180910390f35b61047f61120b565b60405161048c919061323a565b60405180910390f35b61049d611299565b6040516104aa919061323a565b60405180910390f35b6104cd60048036038101906104c89190613058565b611327565b005b6104e960048036038101906104e49190613925565b6113db565b005b6105056004803603810190610500919061399e565b61146d565b005b610521600480360381019061051c919061325c565b611483565b005b61053d60048036038101906105389190613a34565b611509565b60405161054a9190613b1f565b60405180910390f35b61055b611521565b6040516105689190613598565b60405180910390f35b61058b60048036038101906105869190613b90565b611547565b005b610595611813565b005b6105b160048036038101906105ac919061325c565b61194e565b6040516105be9190613162565b60405180910390f35b6105e160048036038101906105dc9190613c37565b61196e565b6040516105ee9190613162565b60405180910390f35b6105ff611a02565b60405161060c91906130a7565b60405180910390f35b61062f600480360381019061062a9190613c77565b611a08565b60405161063c9190613b1f565b60405180910390f35b61065f600480360381019061065a9190613d11565b611a1e565b005b61067b6004803603810190610676919061317d565b611abf565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036106ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e490613e1a565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061081057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610820575061081f82611bb6565b5b9050919050565b61082f611c20565b73ffffffffffffffffffffffffffffffffffffffff1661084d6111e1565b73ffffffffffffffffffffffffffffffffffffffff16146108a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089a90613e86565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600480546108f490613ed5565b80601f016020809104026020016040519081016040528092919081815260200182805461092090613ed5565b801561096d5780601f106109425761010080835404028352916020019161096d565b820191906000526020600020905b81548152906001019060200180831161095057829003601f168201915b505050505081565b6060600082146109ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b190613f52565b60405180910390fd5b60106109c66000611c28565b6040516020016109d7929190614092565b6040516020818303038152906040529050919050565b600d5481565b6109fb611c20565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610a415750610a4085610a3b611c20565b61196e565b5b610a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7790614133565b60405180910390fd5b610a8d8585858585611d88565b5050505050565b60085481565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5481565b610ace611c20565b73ffffffffffffffffffffffffffffffffffffffff16610aec6111e1565b73ffffffffffffffffffffffffffffffffffffffff1614610b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3990613e86565b60405180910390fd5b80600c8190555050565b60608151835114610b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b89906141c5565b60405180910390fd5b6000835167ffffffffffffffff811115610baf57610bae61328e565b5b604051908082528060200260200182016040528015610bdd5781602001602082028036833780820191505090505b50905060005b8451811015610c5a57610c2a858281518110610c0257610c016141e5565b5b6020026020010151858381518110610c1d57610c1c6141e5565b5b602002602001015161067d565b828281518110610c3d57610c3c6141e5565b5b60200260200101818152505080610c5390614243565b9050610be3565b508091505092915050565b600f60149054906101000a900460ff1615610cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cac906142d7565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1a90614343565b60405180910390fd5b60fa8282905010610d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d60906143af565b60405180910390fd5b600b544211610dad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da49061441b565b60405180910390fd5b600c544210610df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de890614487565b60405180910390fd5b610df96120a9565b60005b82829050811015610f99573373ffffffffffffffffffffffffffffffffffffffff16600a6000858585818110610e3557610e346141e5565b5b90506020020135815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb890614519565b60405180910390fd5b6001151560096000858585818110610edc57610edb6141e5565b5b90506020020135815260200190815260200160002060009054906101000a900460ff16151503610f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3890614585565b60405180910390fd5b600160096000858585818110610f5a57610f596141e5565b5b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610f9190614243565b915050610dfc565b50610fc733600084849050604051602001610fb3906145cb565b6040516020818303038152906040526121e3565b81819050600d6000828254610fdc91906145e0565b925050819055505050565b610fef611c20565b73ffffffffffffffffffffffffffffffffffffffff1661100d6111e1565b73ffffffffffffffffffffffffffffffffffffffff1614611063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105a90613e86565b60405180910390fd5b61106d6000612393565b565b600e5481565b61107d611c20565b73ffffffffffffffffffffffffffffffffffffffff1661109b6111e1565b73ffffffffffffffffffffffffffffffffffffffff16146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890613e86565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61113d611c20565b73ffffffffffffffffffffffffffffffffffffffff1661115b6111e1565b73ffffffffffffffffffffffffffffffffffffffff16146111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a890613e86565b60405180910390fd5b8060088190555050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6005805461121890613ed5565b80601f016020809104026020016040519081016040528092919081815260200182805461124490613ed5565b80156112915780601f1061126657610100808354040283529160200191611291565b820191906000526020600020905b81548152906001019060200180831161127457829003601f168201915b505050505081565b601080546112a690613ed5565b80601f01602080910402602001604051908101604052809291908181526020018280546112d290613ed5565b801561131f5780601f106112f45761010080835404028352916020019161131f565b820191906000526020600020905b81548152906001019060200180831161130257829003601f168201915b505050505081565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ae90614660565b60405180910390fd5b6113c382600083612459565b80600d546113d19190614680565b600d819055505050565b6113e3611c20565b73ffffffffffffffffffffffffffffffffffffffff166114016111e1565b73ffffffffffffffffffffffffffffffffffffffff1614611457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144e90613e86565b60405180910390fd5b818160109182611468929190614856565b505050565b61147f611478611c20565b838361269f565b5050565b61148b611c20565b73ffffffffffffffffffffffffffffffffffffffff166114a96111e1565b73ffffffffffffffffffffffffffffffffffffffff16146114ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f690613e86565b60405180910390fd5b80600b8190555050565b600063bc197c8160e01b905098975050505050505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ce90614972565b60405180910390fd5b82828290501461161c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611613906149de565b60405180910390fd5b6000848484846040516020016116359493929190614adc565b60405160208183030381529060405280519060200120905061169b878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506008548361280b565b6116da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d190614b63565b60405180910390fd5b60005b838390508110156117c0576001151560096000868685818110611703576117026141e5565b5b90506020020135815260200190815260200160002060009054906101000a900460ff16151503611768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175f90614585565b60405180910390fd5b600160096000868685818110611781576117806141e5565b5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806117b890614243565b9150506116dd565b506117ee856000858590506040516020016117da906145cb565b6040516020818303038152906040526121e3565b82829050600d600082825461180391906145e0565b9250508190555050505050505050565b61181b611c20565b73ffffffffffffffffffffffffffffffffffffffff166118396111e1565b73ffffffffffffffffffffffffffffffffffffffff161461188f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188690613e86565b60405180910390fd5b600f60149054906101000a900460ff16156118df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d690614bcf565b60405180910390fd5b6000600d546127106118f19190614680565b905080600e819055506119243060008360405160200161191090614c3b565b6040516020818303038152906040526121e3565b61193030600083612459565b6001600f60146101000a81548160ff02191690831515021790555050565b60096020528060005260406000206000915054906101000a900460ff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b5481565b600063f23a6e6160e01b90509695505050505050565b611a26611c20565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a6c5750611a6b85611a66611c20565b61196e565b5b611aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa290614133565b60405180910390fd5b611ab88585858585612822565b5050505050565b611ac7611c20565b73ffffffffffffffffffffffffffffffffffffffff16611ae56111e1565b73ffffffffffffffffffffffffffffffffffffffff1614611b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3290613e86565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba190614cc2565b60405180910390fd5b611bb381612393565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b606060008203611c6f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d83565b600082905060005b60008214611ca1578080611c8a90614243565b915050600a82611c9a9190614d11565b9150611c77565b60008167ffffffffffffffff811115611cbd57611cbc61328e565b5b6040519080825280601f01601f191660200182016040528015611cef5781602001600182028036833780820191505090505b5090505b60008514611d7c57600182611d089190614680565b9150600a85611d179190614d42565b6030611d2391906145e0565b60f81b818381518110611d3957611d386141e5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d759190614d11565b9450611cf3565b8093505050505b919050565b8151835114611dcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc390614de5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611e3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3290614e77565b60405180910390fd5b6000611e45611c20565b9050611e55818787878787612abd565b60005b8451811015612006576000858281518110611e7657611e756141e5565b5b602002602001015190506000858381518110611e9557611e946141e5565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611f36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2d90614f09565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611feb91906145e0565b9250508190555050505080611fff90614243565b9050611e58565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161207d929190614f29565b60405180910390a4612093818787878787612ac5565b6120a1818787878787612acd565b505050505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663438b6300336040518263ffffffff1660e01b815260040161210b9190613598565b600060405180830381865afa158015612128573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612151919061500c565b905060005b81518110156121de5733600a6000848481518110612177576121766141e5565b5b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806121d690614243565b915050612156565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612252576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612249906150c7565b60405180910390fd5b600061225c611c20565b9050600061226985612ca4565b9050600061227685612ca4565b905061228783600089858589612abd565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122e691906145e0565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516123649291906150e7565b60405180910390a461237b83600089858589612ac5565b61238a83600089898989612d1e565b50505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bf90615182565b60405180910390fd5b60006124d2611c20565b905060006124df84612ca4565b905060006124ec84612ca4565b905061250c83876000858560405180602001604052806000815250612abd565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156125a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259a90615214565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516126709291906150e7565b60405180910390a461269684886000868660405180602001604052806000815250612ac5565b50505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361270d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612704906152a6565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127fe9190613162565b60405180910390a3505050565b6000826128188584612ef5565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612891576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288890614e77565b60405180910390fd5b600061289b611c20565b905060006128a885612ca4565b905060006128b585612ca4565b90506128c5838989858589612abd565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508581101561295c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295390614f09565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a1191906145e0565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612a8e9291906150e7565b60405180910390a4612aa4848a8a86868a612ac5565b612ab2848a8a8a8a8a612d1e565b505050505050505050565b505050505050565b505050505050565b612aec8473ffffffffffffffffffffffffffffffffffffffff16612f4b565b15612c9c578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612b3295949392919061531b565b6020604051808303816000875af1925050508015612b6e57506040513d601f19601f82011682018060405250810190612b6b9190615398565b60015b612c1357612b7a6153d2565b806308c379a003612bd65750612b8e6153f4565b80612b995750612bd8565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bcd919061323a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0a906154f6565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9190615588565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612cc357612cc261328e565b5b604051908082528060200260200182016040528015612cf15781602001602082028036833780820191505090505b5090508281600081518110612d0957612d086141e5565b5b60200260200101818152505080915050919050565b612d3d8473ffffffffffffffffffffffffffffffffffffffff16612f4b565b15612eed578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612d839594939291906155a8565b6020604051808303816000875af1925050508015612dbf57506040513d601f19601f82011682018060405250810190612dbc9190615398565b60015b612e6457612dcb6153d2565b806308c379a003612e275750612ddf6153f4565b80612dea5750612e29565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1e919061323a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5b906154f6565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee290615588565b60405180910390fd5b505b505050505050565b60008082905060005b8451811015612f4057612f2b82868381518110612f1e57612f1d6141e5565b5b6020026020010151612f6e565b91508080612f3890614243565b915050612efe565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000818310612f8657612f818284612f99565b612f91565b612f908383612f99565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612fef82612fc4565b9050919050565b612fff81612fe4565b811461300a57600080fd5b50565b60008135905061301c81612ff6565b92915050565b6000819050919050565b61303581613022565b811461304057600080fd5b50565b6000813590506130528161302c565b92915050565b6000806040838503121561306f5761306e612fba565b5b600061307d8582860161300d565b925050602061308e85828601613043565b9150509250929050565b6130a181613022565b82525050565b60006020820190506130bc6000830184613098565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6130f7816130c2565b811461310257600080fd5b50565b600081359050613114816130ee565b92915050565b6000602082840312156131305761312f612fba565b5b600061313e84828501613105565b91505092915050565b60008115159050919050565b61315c81613147565b82525050565b60006020820190506131776000830184613153565b92915050565b60006020828403121561319357613192612fba565b5b60006131a18482850161300d565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131e45780820151818401526020810190506131c9565b60008484015250505050565b6000601f19601f8301169050919050565b600061320c826131aa565b61321681856131b5565b93506132268185602086016131c6565b61322f816131f0565b840191505092915050565b600060208201905081810360008301526132548184613201565b905092915050565b60006020828403121561327257613271612fba565b5b600061328084828501613043565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6132c6826131f0565b810181811067ffffffffffffffff821117156132e5576132e461328e565b5b80604052505050565b60006132f8612fb0565b905061330482826132bd565b919050565b600067ffffffffffffffff8211156133245761332361328e565b5b602082029050602081019050919050565b600080fd5b600061334d61334884613309565b6132ee565b905080838252602082019050602084028301858111156133705761336f613335565b5b835b8181101561339957806133858882613043565b845260208401935050602081019050613372565b5050509392505050565b600082601f8301126133b8576133b7613289565b5b81356133c884826020860161333a565b91505092915050565b600080fd5b600067ffffffffffffffff8211156133f1576133f061328e565b5b6133fa826131f0565b9050602081019050919050565b82818337600083830152505050565b6000613429613424846133d6565b6132ee565b905082815260208101848484011115613445576134446133d1565b5b613450848285613407565b509392505050565b600082601f83011261346d5761346c613289565b5b813561347d848260208601613416565b91505092915050565b600080600080600060a086880312156134a2576134a1612fba565b5b60006134b08882890161300d565b95505060206134c18882890161300d565b945050604086013567ffffffffffffffff8111156134e2576134e1612fbf565b5b6134ee888289016133a3565b935050606086013567ffffffffffffffff81111561350f5761350e612fbf565b5b61351b888289016133a3565b925050608086013567ffffffffffffffff81111561353c5761353b612fbf565b5b61354888828901613458565b9150509295509295909350565b6000819050919050565b61356881613555565b82525050565b6000602082019050613583600083018461355f565b92915050565b61359281612fe4565b82525050565b60006020820190506135ad6000830184613589565b92915050565b600067ffffffffffffffff8211156135ce576135cd61328e565b5b602082029050602081019050919050565b60006135f26135ed846135b3565b6132ee565b9050808382526020820190506020840283018581111561361557613614613335565b5b835b8181101561363e578061362a888261300d565b845260208401935050602081019050613617565b5050509392505050565b600082601f83011261365d5761365c613289565b5b813561366d8482602086016135df565b91505092915050565b6000806040838503121561368d5761368c612fba565b5b600083013567ffffffffffffffff8111156136ab576136aa612fbf565b5b6136b785828601613648565b925050602083013567ffffffffffffffff8111156136d8576136d7612fbf565b5b6136e4858286016133a3565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61372381613022565b82525050565b6000613735838361371a565b60208301905092915050565b6000602082019050919050565b6000613759826136ee565b61376381856136f9565b935061376e8361370a565b8060005b8381101561379f5781516137868882613729565b975061379183613741565b925050600181019050613772565b5085935050505092915050565b600060208201905081810360008301526137c6818461374e565b905092915050565b600080fd5b60008083601f8401126137e9576137e8613289565b5b8235905067ffffffffffffffff811115613806576138056137ce565b5b60208301915083602082028301111561382257613821613335565b5b9250929050565b600080602083850312156138405761383f612fba565b5b600083013567ffffffffffffffff81111561385e5761385d612fbf565b5b61386a858286016137d3565b92509250509250929050565b61387f81613555565b811461388a57600080fd5b50565b60008135905061389c81613876565b92915050565b6000602082840312156138b8576138b7612fba565b5b60006138c68482850161388d565b91505092915050565b60008083601f8401126138e5576138e4613289565b5b8235905067ffffffffffffffff811115613902576139016137ce565b5b60208301915083600182028301111561391e5761391d613335565b5b9250929050565b6000806020838503121561393c5761393b612fba565b5b600083013567ffffffffffffffff81111561395a57613959612fbf565b5b613966858286016138cf565b92509250509250929050565b61397b81613147565b811461398657600080fd5b50565b60008135905061399881613972565b92915050565b600080604083850312156139b5576139b4612fba565b5b60006139c38582860161300d565b92505060206139d485828601613989565b9150509250929050565b60008083601f8401126139f4576139f3613289565b5b8235905067ffffffffffffffff811115613a1157613a106137ce565b5b602083019150836001820283011115613a2d57613a2c613335565b5b9250929050565b60008060008060008060008060a0898b031215613a5457613a53612fba565b5b6000613a628b828c0161300d565b9850506020613a738b828c0161300d565b975050604089013567ffffffffffffffff811115613a9457613a93612fbf565b5b613aa08b828c016137d3565b9650965050606089013567ffffffffffffffff811115613ac357613ac2612fbf565b5b613acf8b828c016137d3565b9450945050608089013567ffffffffffffffff811115613af257613af1612fbf565b5b613afe8b828c016139de565b92509250509295985092959890939650565b613b19816130c2565b82525050565b6000602082019050613b346000830184613b10565b92915050565b60008083601f840112613b5057613b4f613289565b5b8235905067ffffffffffffffff811115613b6d57613b6c6137ce565b5b602083019150836020820283011115613b8957613b88613335565b5b9250929050565b60008060008060008060808789031215613bad57613bac612fba565b5b600087013567ffffffffffffffff811115613bcb57613bca612fbf565b5b613bd789828a01613b3a565b96509650506020613bea89828a0161300d565b9450506040613bfb89828a01613043565b935050606087013567ffffffffffffffff811115613c1c57613c1b612fbf565b5b613c2889828a016137d3565b92509250509295509295509295565b60008060408385031215613c4e57613c4d612fba565b5b6000613c5c8582860161300d565b9250506020613c6d8582860161300d565b9150509250929050565b60008060008060008060a08789031215613c9457613c93612fba565b5b6000613ca289828a0161300d565b9650506020613cb389828a0161300d565b9550506040613cc489828a01613043565b9450506060613cd589828a01613043565b935050608087013567ffffffffffffffff811115613cf657613cf5612fbf565b5b613d0289828a016139de565b92509250509295509295509295565b600080600080600060a08688031215613d2d57613d2c612fba565b5b6000613d3b8882890161300d565b9550506020613d4c8882890161300d565b9450506040613d5d88828901613043565b9350506060613d6e88828901613043565b925050608086013567ffffffffffffffff811115613d8f57613d8e612fbf565b5b613d9b88828901613458565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000613e04602a836131b5565b9150613e0f82613da8565b604082019050919050565b60006020820190508181036000830152613e3381613df7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613e706020836131b5565b9150613e7b82613e3a565b602082019050919050565b60006020820190508181036000830152613e9f81613e63565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613eed57607f821691505b602082108103613f0057613eff613ea6565b5b50919050565b7f54797065206e6f74207265636f676e697a656400000000000000000000000000600082015250565b6000613f3c6013836131b5565b9150613f4782613f06565b602082019050919050565b60006020820190508181036000830152613f6b81613f2f565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613f9f81613ed5565b613fa98186613f72565b94506001821660008114613fc45760018114613fd95761400c565b60ff198316865281151582028601935061400c565b613fe285613f7d565b60005b8381101561400457815481890152600182019150602081019050613fe5565b838801955050505b50505092915050565b6000614020826131aa565b61402a8185613f72565b935061403a8185602086016131c6565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061407c600583613f72565b915061408782614046565b600582019050919050565b600061409e8285613f92565b91506140aa8284614015565b91506140b58261406f565b91508190509392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b600061411d602f836131b5565b9150614128826140c1565b604082019050919050565b6000602082019050818103600083015261414c81614110565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b60006141af6029836131b5565b91506141ba82614153565b604082019050919050565b600060208201905081810360008301526141de816141a2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061424e82613022565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036142805761427f614214565b5b600182019050919050565b7f4e6f20636c61696d73206166746572206275726e000000000000000000000000600082015250565b60006142c16014836131b5565b91506142cc8261428b565b602082019050919050565b600060208201905081810360008301526142f0816142b4565b9050919050565b7f454f4173206f6e6c790000000000000000000000000000000000000000000000600082015250565b600061432d6009836131b5565b9150614338826142f7565b602082019050919050565b6000602082019050818103600083015261435c81614320565b9050919050565b7f546f6f206d616e79206164647265737365730000000000000000000000000000600082015250565b60006143996012836131b5565b91506143a482614363565b602082019050919050565b600060208201905081810360008301526143c88161438c565b9050919050565b7f50617469656e6365210000000000000000000000000000000000000000000000600082015250565b60006144056009836131b5565b9150614410826143cf565b602082019050919050565b60006020820190508181036000830152614434816143f8565b9050919050565b7f546f6f206c617465210000000000000000000000000000000000000000000000600082015250565b60006144716009836131b5565b915061447c8261443b565b602082019050919050565b600060208201905081810360008301526144a081614464565b9050919050565b7f43616e277420636c61696d20697420696620796f7520646f6e2774206f776e2060008201527f6974000000000000000000000000000000000000000000000000000000000000602082015250565b60006145036022836131b5565b915061450e826144a7565b604082019050919050565b60006020820190508181036000830152614532816144f6565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b600061456f600f836131b5565b915061457a82614539565b602082019050919050565b6000602082019050818103600083015261459e81614562565b9050919050565b50565b60006145b5600083613f72565b91506145c0826145a5565b600082019050919050565b60006145d6826145a8565b9150819050919050565b60006145eb82613022565b91506145f683613022565b925082820190508082111561460e5761460d614214565b5b92915050565b7f4e6f7420617574686f72697a656420746f206275726e2e000000000000000000600082015250565b600061464a6017836131b5565b915061465582614614565b602082019050919050565b600060208201905081810360008301526146798161463d565b9050919050565b600061468b82613022565b915061469683613022565b92508282039050818111156146ae576146ad614214565b5b92915050565b600082905092915050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261470c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826146cf565b61471686836146cf565b95508019841693508086168417925050509392505050565b6000819050919050565b600061475361474e61474984613022565b61472e565b613022565b9050919050565b6000819050919050565b61476d83614738565b6147816147798261475a565b8484546146dc565b825550505050565b600090565b614796614789565b6147a1818484614764565b505050565b5b818110156147c5576147ba60008261478e565b6001810190506147a7565b5050565b601f82111561480a576147db81613f7d565b6147e4846146bf565b810160208510156147f3578190505b6148076147ff856146bf565b8301826147a6565b50505b505050565b600082821c905092915050565b600061482d6000198460080261480f565b1980831691505092915050565b6000614846838361481c565b9150826002028217905092915050565b61486083836146b4565b67ffffffffffffffff8111156148795761487861328e565b5b6148838254613ed5565b61488e8282856147c9565b6000601f8311600181146148bd57600084156148ab578287013590505b6148b5858261483a565b86555061491d565b601f1984166148cb86613f7d565b60005b828110156148f3578489013582556001820191506020850194506020810190506148ce565b86831015614910578489013561490c601f89168261481c565b8355505b6001600288020188555050505b50505050505050565b7f4e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b600061495c600b836131b5565b915061496782614926565b602082019050919050565b6000602082019050818103600083015261498b8161494f565b9050919050565b7f4c656e677468206f66206964732069732077726f6e6700000000000000000000600082015250565b60006149c86016836131b5565b91506149d382614992565b602082019050919050565b600060208201905081810360008301526149f7816149bb565b9050919050565b60008160601b9050919050565b6000614a16826149fe565b9050919050565b6000614a2882614a0b565b9050919050565b614a40614a3b82612fe4565b614a1d565b82525050565b6000819050919050565b614a61614a5c82613022565b614a46565b82525050565b600081905092915050565b600080fd5b82818337505050565b6000614a8c8385614a67565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614abf57614abe614a72565b5b602083029250614ad0838584614a77565b82840190509392505050565b6000614ae88287614a2f565b601482019150614af88286614a50565b602082019150614b09828486614a80565b915081905095945050505050565b7f496e76616c69642070726f6f662e000000000000000000000000000000000000600082015250565b6000614b4d600e836131b5565b9150614b5882614b17565b602082019050919050565b60006020820190508181036000830152614b7c81614b40565b9050919050565b7f416c7265616479206275726e65642e0000000000000000000000000000000000600082015250565b6000614bb9600f836131b5565b9150614bc482614b83565b602082019050919050565b60006020820190508181036000830152614be881614bac565b9050919050565b7f6275726e2c626162792c6275726e000000000000000000000000000000000000600082015250565b6000614c25600e83613f72565b9150614c3082614bef565b600e82019050919050565b6000614c4682614c18565b9150819050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614cac6026836131b5565b9150614cb782614c50565b604082019050919050565b60006020820190508181036000830152614cdb81614c9f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614d1c82613022565b9150614d2783613022565b925082614d3757614d36614ce2565b5b828204905092915050565b6000614d4d82613022565b9150614d5883613022565b925082614d6857614d67614ce2565b5b828206905092915050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614dcf6028836131b5565b9150614dda82614d73565b604082019050919050565b60006020820190508181036000830152614dfe81614dc2565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614e616025836131b5565b9150614e6c82614e05565b604082019050919050565b60006020820190508181036000830152614e9081614e54565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614ef3602a836131b5565b9150614efe82614e97565b604082019050919050565b60006020820190508181036000830152614f2281614ee6565b9050919050565b60006040820190508181036000830152614f43818561374e565b90508181036020830152614f57818461374e565b90509392505050565b600081519050614f6f8161302c565b92915050565b6000614f88614f8384613309565b6132ee565b90508083825260208201905060208402830185811115614fab57614faa613335565b5b835b81811015614fd45780614fc08882614f60565b845260208401935050602081019050614fad565b5050509392505050565b600082601f830112614ff357614ff2613289565b5b8151615003848260208601614f75565b91505092915050565b60006020828403121561502257615021612fba565b5b600082015167ffffffffffffffff8111156150405761503f612fbf565b5b61504c84828501614fde565b91505092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006150b16021836131b5565b91506150bc82615055565b604082019050919050565b600060208201905081810360008301526150e0816150a4565b9050919050565b60006040820190506150fc6000830185613098565b6151096020830184613098565b9392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061516c6023836131b5565b915061517782615110565b604082019050919050565b6000602082019050818103600083015261519b8161515f565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006151fe6024836131b5565b9150615209826151a2565b604082019050919050565b6000602082019050818103600083015261522d816151f1565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006152906029836131b5565b915061529b82615234565b604082019050919050565b600060208201905081810360008301526152bf81615283565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006152ed826152c6565b6152f781856152d1565b93506153078185602086016131c6565b615310816131f0565b840191505092915050565b600060a0820190506153306000830188613589565b61533d6020830187613589565b818103604083015261534f818661374e565b90508181036060830152615363818561374e565b9050818103608083015261537781846152e2565b90509695505050505050565b600081519050615392816130ee565b92915050565b6000602082840312156153ae576153ad612fba565b5b60006153bc84828501615383565b91505092915050565b60008160e01c9050919050565b600060033d11156153f15760046000803e6153ee6000516153c5565b90505b90565b600060443d1061548157615406612fb0565b60043d036004823e80513d602482011167ffffffffffffffff8211171561542e575050615481565b808201805167ffffffffffffffff81111561544c5750505050615481565b80602083010160043d038501811115615469575050505050615481565b615478826020018501866132bd565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006154e06034836131b5565b91506154eb82615484565b604082019050919050565b6000602082019050818103600083015261550f816154d3565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006155726028836131b5565b915061557d82615516565b604082019050919050565b600060208201905081810360008301526155a181615565565b9050919050565b600060a0820190506155bd6000830188613589565b6155ca6020830187613589565b6155d76040830186613098565b6155e46060830185613098565b81810360808301526155f681846152e2565b9050969550505050505056fea26469706673582212202e7f203f41ac743352162b35b72c0b6607302ce4775db1d72f2e811703c31ba364736f6c63430008110033697066733a2f2f516d6336597045386d7979325238715579546e42747a455737386e585264467a4b733244797466326947736754332f00000000000000000000000031d45de84fde2fb36575085e05754a4932dd5170

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102105760003560e01c80638b5857f811610125578063cdbbd078116100ad578063e985e9c51161007c578063e985e9c5146105c7578063f04d688f146105f7578063f23a6e6114610615578063f242432a14610645578063f2fde38b1461066157610210565b8063cdbbd07814610553578063d18d761114610571578063d6a780041461058d578063dbe7e3bd1461059757610210565b80639dc29fac116100f45780639dc29fac146104b3578063a0bcfc7f146104cf578063a22cb465146104eb578063b0aa1e0414610507578063bc197c811461052357610210565b80638b5857f81461043b5780638da5cb5b1461045957806395d89b41146104775780639abc83201461049557610210565b80633b0243ee116101a85780636ba4c138116101775780636ba4c138146103bf578063715018a6146103db57806373f42561146103e557806374278547146104035780637cb647591461041f57610210565b80633b0243ee146103375780633ccfa92f146103555780634a1c86b7146103735780634e1273f41461038f57610210565b80630e89341c116101e45780630e89341c146102af57806318160ddd146102df5780632eb2c2d6146102fd5780632eb4a7ab1461031957610210565b8062fdd58e1461021557806301ffc9a71461024557806305d9f16b1461027557806306fdde0314610291575b600080fd5b61022f600480360381019061022a9190613058565b61067d565b60405161023c91906130a7565b60405180910390f35b61025f600480360381019061025a919061311a565b610745565b60405161026c9190613162565b60405180910390f35b61028f600480360381019061028a919061317d565b610827565b005b6102996108e7565b6040516102a6919061323a565b60405180910390f35b6102c960048036038101906102c4919061325c565b610975565b6040516102d6919061323a565b60405180910390f35b6102e76109ed565b6040516102f491906130a7565b60405180910390f35b61031760048036038101906103129190613486565b6109f3565b005b610321610a94565b60405161032e919061356e565b60405180910390f35b61033f610a9a565b60405161034c9190613598565b60405180910390f35b61035d610ac0565b60405161036a91906130a7565b60405180910390f35b61038d6004803603810190610388919061325c565b610ac6565b005b6103a960048036038101906103a49190613676565b610b4c565b6040516103b691906137ac565b60405180910390f35b6103d960048036038101906103d49190613829565b610c65565b005b6103e3610fe7565b005b6103ed61106f565b6040516103fa91906130a7565b60405180910390f35b61041d6004803603810190610418919061317d565b611075565b005b610439600480360381019061043491906138a2565b611135565b005b6104436111bb565b6040516104509190613598565b60405180910390f35b6104616111e1565b60405161046e9190613598565b60405180910390f35b61047f61120b565b60405161048c919061323a565b60405180910390f35b61049d611299565b6040516104aa919061323a565b60405180910390f35b6104cd60048036038101906104c89190613058565b611327565b005b6104e960048036038101906104e49190613925565b6113db565b005b6105056004803603810190610500919061399e565b61146d565b005b610521600480360381019061051c919061325c565b611483565b005b61053d60048036038101906105389190613a34565b611509565b60405161054a9190613b1f565b60405180910390f35b61055b611521565b6040516105689190613598565b60405180910390f35b61058b60048036038101906105869190613b90565b611547565b005b610595611813565b005b6105b160048036038101906105ac919061325c565b61194e565b6040516105be9190613162565b60405180910390f35b6105e160048036038101906105dc9190613c37565b61196e565b6040516105ee9190613162565b60405180910390f35b6105ff611a02565b60405161060c91906130a7565b60405180910390f35b61062f600480360381019061062a9190613c77565b611a08565b60405161063c9190613b1f565b60405180910390f35b61065f600480360381019061065a9190613d11565b611a1e565b005b61067b6004803603810190610676919061317d565b611abf565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036106ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e490613e1a565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061081057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610820575061081f82611bb6565b5b9050919050565b61082f611c20565b73ffffffffffffffffffffffffffffffffffffffff1661084d6111e1565b73ffffffffffffffffffffffffffffffffffffffff16146108a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089a90613e86565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600480546108f490613ed5565b80601f016020809104026020016040519081016040528092919081815260200182805461092090613ed5565b801561096d5780601f106109425761010080835404028352916020019161096d565b820191906000526020600020905b81548152906001019060200180831161095057829003601f168201915b505050505081565b6060600082146109ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b190613f52565b60405180910390fd5b60106109c66000611c28565b6040516020016109d7929190614092565b6040516020818303038152906040529050919050565b600d5481565b6109fb611c20565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610a415750610a4085610a3b611c20565b61196e565b5b610a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7790614133565b60405180910390fd5b610a8d8585858585611d88565b5050505050565b60085481565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5481565b610ace611c20565b73ffffffffffffffffffffffffffffffffffffffff16610aec6111e1565b73ffffffffffffffffffffffffffffffffffffffff1614610b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3990613e86565b60405180910390fd5b80600c8190555050565b60608151835114610b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b89906141c5565b60405180910390fd5b6000835167ffffffffffffffff811115610baf57610bae61328e565b5b604051908082528060200260200182016040528015610bdd5781602001602082028036833780820191505090505b50905060005b8451811015610c5a57610c2a858281518110610c0257610c016141e5565b5b6020026020010151858381518110610c1d57610c1c6141e5565b5b602002602001015161067d565b828281518110610c3d57610c3c6141e5565b5b60200260200101818152505080610c5390614243565b9050610be3565b508091505092915050565b600f60149054906101000a900460ff1615610cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cac906142d7565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1a90614343565b60405180910390fd5b60fa8282905010610d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d60906143af565b60405180910390fd5b600b544211610dad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da49061441b565b60405180910390fd5b600c544210610df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de890614487565b60405180910390fd5b610df96120a9565b60005b82829050811015610f99573373ffffffffffffffffffffffffffffffffffffffff16600a6000858585818110610e3557610e346141e5565b5b90506020020135815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb890614519565b60405180910390fd5b6001151560096000858585818110610edc57610edb6141e5565b5b90506020020135815260200190815260200160002060009054906101000a900460ff16151503610f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3890614585565b60405180910390fd5b600160096000858585818110610f5a57610f596141e5565b5b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610f9190614243565b915050610dfc565b50610fc733600084849050604051602001610fb3906145cb565b6040516020818303038152906040526121e3565b81819050600d6000828254610fdc91906145e0565b925050819055505050565b610fef611c20565b73ffffffffffffffffffffffffffffffffffffffff1661100d6111e1565b73ffffffffffffffffffffffffffffffffffffffff1614611063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105a90613e86565b60405180910390fd5b61106d6000612393565b565b600e5481565b61107d611c20565b73ffffffffffffffffffffffffffffffffffffffff1661109b6111e1565b73ffffffffffffffffffffffffffffffffffffffff16146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890613e86565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61113d611c20565b73ffffffffffffffffffffffffffffffffffffffff1661115b6111e1565b73ffffffffffffffffffffffffffffffffffffffff16146111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a890613e86565b60405180910390fd5b8060088190555050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6005805461121890613ed5565b80601f016020809104026020016040519081016040528092919081815260200182805461124490613ed5565b80156112915780601f1061126657610100808354040283529160200191611291565b820191906000526020600020905b81548152906001019060200180831161127457829003601f168201915b505050505081565b601080546112a690613ed5565b80601f01602080910402602001604051908101604052809291908181526020018280546112d290613ed5565b801561131f5780601f106112f45761010080835404028352916020019161131f565b820191906000526020600020905b81548152906001019060200180831161130257829003601f168201915b505050505081565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ae90614660565b60405180910390fd5b6113c382600083612459565b80600d546113d19190614680565b600d819055505050565b6113e3611c20565b73ffffffffffffffffffffffffffffffffffffffff166114016111e1565b73ffffffffffffffffffffffffffffffffffffffff1614611457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144e90613e86565b60405180910390fd5b818160109182611468929190614856565b505050565b61147f611478611c20565b838361269f565b5050565b61148b611c20565b73ffffffffffffffffffffffffffffffffffffffff166114a96111e1565b73ffffffffffffffffffffffffffffffffffffffff16146114ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f690613e86565b60405180910390fd5b80600b8190555050565b600063bc197c8160e01b905098975050505050505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ce90614972565b60405180910390fd5b82828290501461161c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611613906149de565b60405180910390fd5b6000848484846040516020016116359493929190614adc565b60405160208183030381529060405280519060200120905061169b878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506008548361280b565b6116da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d190614b63565b60405180910390fd5b60005b838390508110156117c0576001151560096000868685818110611703576117026141e5565b5b90506020020135815260200190815260200160002060009054906101000a900460ff16151503611768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175f90614585565b60405180910390fd5b600160096000868685818110611781576117806141e5565b5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806117b890614243565b9150506116dd565b506117ee856000858590506040516020016117da906145cb565b6040516020818303038152906040526121e3565b82829050600d600082825461180391906145e0565b9250508190555050505050505050565b61181b611c20565b73ffffffffffffffffffffffffffffffffffffffff166118396111e1565b73ffffffffffffffffffffffffffffffffffffffff161461188f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188690613e86565b60405180910390fd5b600f60149054906101000a900460ff16156118df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d690614bcf565b60405180910390fd5b6000600d546127106118f19190614680565b905080600e819055506119243060008360405160200161191090614c3b565b6040516020818303038152906040526121e3565b61193030600083612459565b6001600f60146101000a81548160ff02191690831515021790555050565b60096020528060005260406000206000915054906101000a900460ff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b5481565b600063f23a6e6160e01b90509695505050505050565b611a26611c20565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a6c5750611a6b85611a66611c20565b61196e565b5b611aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa290614133565b60405180910390fd5b611ab88585858585612822565b5050505050565b611ac7611c20565b73ffffffffffffffffffffffffffffffffffffffff16611ae56111e1565b73ffffffffffffffffffffffffffffffffffffffff1614611b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3290613e86565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba190614cc2565b60405180910390fd5b611bb381612393565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b606060008203611c6f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d83565b600082905060005b60008214611ca1578080611c8a90614243565b915050600a82611c9a9190614d11565b9150611c77565b60008167ffffffffffffffff811115611cbd57611cbc61328e565b5b6040519080825280601f01601f191660200182016040528015611cef5781602001600182028036833780820191505090505b5090505b60008514611d7c57600182611d089190614680565b9150600a85611d179190614d42565b6030611d2391906145e0565b60f81b818381518110611d3957611d386141e5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d759190614d11565b9450611cf3565b8093505050505b919050565b8151835114611dcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc390614de5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611e3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3290614e77565b60405180910390fd5b6000611e45611c20565b9050611e55818787878787612abd565b60005b8451811015612006576000858281518110611e7657611e756141e5565b5b602002602001015190506000858381518110611e9557611e946141e5565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611f36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2d90614f09565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611feb91906145e0565b9250508190555050505080611fff90614243565b9050611e58565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161207d929190614f29565b60405180910390a4612093818787878787612ac5565b6120a1818787878787612acd565b505050505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663438b6300336040518263ffffffff1660e01b815260040161210b9190613598565b600060405180830381865afa158015612128573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612151919061500c565b905060005b81518110156121de5733600a6000848481518110612177576121766141e5565b5b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806121d690614243565b915050612156565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612252576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612249906150c7565b60405180910390fd5b600061225c611c20565b9050600061226985612ca4565b9050600061227685612ca4565b905061228783600089858589612abd565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122e691906145e0565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516123649291906150e7565b60405180910390a461237b83600089858589612ac5565b61238a83600089898989612d1e565b50505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bf90615182565b60405180910390fd5b60006124d2611c20565b905060006124df84612ca4565b905060006124ec84612ca4565b905061250c83876000858560405180602001604052806000815250612abd565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156125a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259a90615214565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516126709291906150e7565b60405180910390a461269684886000868660405180602001604052806000815250612ac5565b50505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361270d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612704906152a6565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127fe9190613162565b60405180910390a3505050565b6000826128188584612ef5565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612891576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288890614e77565b60405180910390fd5b600061289b611c20565b905060006128a885612ca4565b905060006128b585612ca4565b90506128c5838989858589612abd565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508581101561295c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295390614f09565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a1191906145e0565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612a8e9291906150e7565b60405180910390a4612aa4848a8a86868a612ac5565b612ab2848a8a8a8a8a612d1e565b505050505050505050565b505050505050565b505050505050565b612aec8473ffffffffffffffffffffffffffffffffffffffff16612f4b565b15612c9c578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612b3295949392919061531b565b6020604051808303816000875af1925050508015612b6e57506040513d601f19601f82011682018060405250810190612b6b9190615398565b60015b612c1357612b7a6153d2565b806308c379a003612bd65750612b8e6153f4565b80612b995750612bd8565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bcd919061323a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0a906154f6565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9190615588565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612cc357612cc261328e565b5b604051908082528060200260200182016040528015612cf15781602001602082028036833780820191505090505b5090508281600081518110612d0957612d086141e5565b5b60200260200101818152505080915050919050565b612d3d8473ffffffffffffffffffffffffffffffffffffffff16612f4b565b15612eed578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612d839594939291906155a8565b6020604051808303816000875af1925050508015612dbf57506040513d601f19601f82011682018060405250810190612dbc9190615398565b60015b612e6457612dcb6153d2565b806308c379a003612e275750612ddf6153f4565b80612dea5750612e29565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1e919061323a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5b906154f6565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee290615588565b60405180910390fd5b505b505050505050565b60008082905060005b8451811015612f4057612f2b82868381518110612f1e57612f1d6141e5565b5b6020026020010151612f6e565b91508080612f3890614243565b915050612efe565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000818310612f8657612f818284612f99565b612f91565b612f908383612f99565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612fef82612fc4565b9050919050565b612fff81612fe4565b811461300a57600080fd5b50565b60008135905061301c81612ff6565b92915050565b6000819050919050565b61303581613022565b811461304057600080fd5b50565b6000813590506130528161302c565b92915050565b6000806040838503121561306f5761306e612fba565b5b600061307d8582860161300d565b925050602061308e85828601613043565b9150509250929050565b6130a181613022565b82525050565b60006020820190506130bc6000830184613098565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6130f7816130c2565b811461310257600080fd5b50565b600081359050613114816130ee565b92915050565b6000602082840312156131305761312f612fba565b5b600061313e84828501613105565b91505092915050565b60008115159050919050565b61315c81613147565b82525050565b60006020820190506131776000830184613153565b92915050565b60006020828403121561319357613192612fba565b5b60006131a18482850161300d565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131e45780820151818401526020810190506131c9565b60008484015250505050565b6000601f19601f8301169050919050565b600061320c826131aa565b61321681856131b5565b93506132268185602086016131c6565b61322f816131f0565b840191505092915050565b600060208201905081810360008301526132548184613201565b905092915050565b60006020828403121561327257613271612fba565b5b600061328084828501613043565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6132c6826131f0565b810181811067ffffffffffffffff821117156132e5576132e461328e565b5b80604052505050565b60006132f8612fb0565b905061330482826132bd565b919050565b600067ffffffffffffffff8211156133245761332361328e565b5b602082029050602081019050919050565b600080fd5b600061334d61334884613309565b6132ee565b905080838252602082019050602084028301858111156133705761336f613335565b5b835b8181101561339957806133858882613043565b845260208401935050602081019050613372565b5050509392505050565b600082601f8301126133b8576133b7613289565b5b81356133c884826020860161333a565b91505092915050565b600080fd5b600067ffffffffffffffff8211156133f1576133f061328e565b5b6133fa826131f0565b9050602081019050919050565b82818337600083830152505050565b6000613429613424846133d6565b6132ee565b905082815260208101848484011115613445576134446133d1565b5b613450848285613407565b509392505050565b600082601f83011261346d5761346c613289565b5b813561347d848260208601613416565b91505092915050565b600080600080600060a086880312156134a2576134a1612fba565b5b60006134b08882890161300d565b95505060206134c18882890161300d565b945050604086013567ffffffffffffffff8111156134e2576134e1612fbf565b5b6134ee888289016133a3565b935050606086013567ffffffffffffffff81111561350f5761350e612fbf565b5b61351b888289016133a3565b925050608086013567ffffffffffffffff81111561353c5761353b612fbf565b5b61354888828901613458565b9150509295509295909350565b6000819050919050565b61356881613555565b82525050565b6000602082019050613583600083018461355f565b92915050565b61359281612fe4565b82525050565b60006020820190506135ad6000830184613589565b92915050565b600067ffffffffffffffff8211156135ce576135cd61328e565b5b602082029050602081019050919050565b60006135f26135ed846135b3565b6132ee565b9050808382526020820190506020840283018581111561361557613614613335565b5b835b8181101561363e578061362a888261300d565b845260208401935050602081019050613617565b5050509392505050565b600082601f83011261365d5761365c613289565b5b813561366d8482602086016135df565b91505092915050565b6000806040838503121561368d5761368c612fba565b5b600083013567ffffffffffffffff8111156136ab576136aa612fbf565b5b6136b785828601613648565b925050602083013567ffffffffffffffff8111156136d8576136d7612fbf565b5b6136e4858286016133a3565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61372381613022565b82525050565b6000613735838361371a565b60208301905092915050565b6000602082019050919050565b6000613759826136ee565b61376381856136f9565b935061376e8361370a565b8060005b8381101561379f5781516137868882613729565b975061379183613741565b925050600181019050613772565b5085935050505092915050565b600060208201905081810360008301526137c6818461374e565b905092915050565b600080fd5b60008083601f8401126137e9576137e8613289565b5b8235905067ffffffffffffffff811115613806576138056137ce565b5b60208301915083602082028301111561382257613821613335565b5b9250929050565b600080602083850312156138405761383f612fba565b5b600083013567ffffffffffffffff81111561385e5761385d612fbf565b5b61386a858286016137d3565b92509250509250929050565b61387f81613555565b811461388a57600080fd5b50565b60008135905061389c81613876565b92915050565b6000602082840312156138b8576138b7612fba565b5b60006138c68482850161388d565b91505092915050565b60008083601f8401126138e5576138e4613289565b5b8235905067ffffffffffffffff811115613902576139016137ce565b5b60208301915083600182028301111561391e5761391d613335565b5b9250929050565b6000806020838503121561393c5761393b612fba565b5b600083013567ffffffffffffffff81111561395a57613959612fbf565b5b613966858286016138cf565b92509250509250929050565b61397b81613147565b811461398657600080fd5b50565b60008135905061399881613972565b92915050565b600080604083850312156139b5576139b4612fba565b5b60006139c38582860161300d565b92505060206139d485828601613989565b9150509250929050565b60008083601f8401126139f4576139f3613289565b5b8235905067ffffffffffffffff811115613a1157613a106137ce565b5b602083019150836001820283011115613a2d57613a2c613335565b5b9250929050565b60008060008060008060008060a0898b031215613a5457613a53612fba565b5b6000613a628b828c0161300d565b9850506020613a738b828c0161300d565b975050604089013567ffffffffffffffff811115613a9457613a93612fbf565b5b613aa08b828c016137d3565b9650965050606089013567ffffffffffffffff811115613ac357613ac2612fbf565b5b613acf8b828c016137d3565b9450945050608089013567ffffffffffffffff811115613af257613af1612fbf565b5b613afe8b828c016139de565b92509250509295985092959890939650565b613b19816130c2565b82525050565b6000602082019050613b346000830184613b10565b92915050565b60008083601f840112613b5057613b4f613289565b5b8235905067ffffffffffffffff811115613b6d57613b6c6137ce565b5b602083019150836020820283011115613b8957613b88613335565b5b9250929050565b60008060008060008060808789031215613bad57613bac612fba565b5b600087013567ffffffffffffffff811115613bcb57613bca612fbf565b5b613bd789828a01613b3a565b96509650506020613bea89828a0161300d565b9450506040613bfb89828a01613043565b935050606087013567ffffffffffffffff811115613c1c57613c1b612fbf565b5b613c2889828a016137d3565b92509250509295509295509295565b60008060408385031215613c4e57613c4d612fba565b5b6000613c5c8582860161300d565b9250506020613c6d8582860161300d565b9150509250929050565b60008060008060008060a08789031215613c9457613c93612fba565b5b6000613ca289828a0161300d565b9650506020613cb389828a0161300d565b9550506040613cc489828a01613043565b9450506060613cd589828a01613043565b935050608087013567ffffffffffffffff811115613cf657613cf5612fbf565b5b613d0289828a016139de565b92509250509295509295509295565b600080600080600060a08688031215613d2d57613d2c612fba565b5b6000613d3b8882890161300d565b9550506020613d4c8882890161300d565b9450506040613d5d88828901613043565b9350506060613d6e88828901613043565b925050608086013567ffffffffffffffff811115613d8f57613d8e612fbf565b5b613d9b88828901613458565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000613e04602a836131b5565b9150613e0f82613da8565b604082019050919050565b60006020820190508181036000830152613e3381613df7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613e706020836131b5565b9150613e7b82613e3a565b602082019050919050565b60006020820190508181036000830152613e9f81613e63565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613eed57607f821691505b602082108103613f0057613eff613ea6565b5b50919050565b7f54797065206e6f74207265636f676e697a656400000000000000000000000000600082015250565b6000613f3c6013836131b5565b9150613f4782613f06565b602082019050919050565b60006020820190508181036000830152613f6b81613f2f565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613f9f81613ed5565b613fa98186613f72565b94506001821660008114613fc45760018114613fd95761400c565b60ff198316865281151582028601935061400c565b613fe285613f7d565b60005b8381101561400457815481890152600182019150602081019050613fe5565b838801955050505b50505092915050565b6000614020826131aa565b61402a8185613f72565b935061403a8185602086016131c6565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061407c600583613f72565b915061408782614046565b600582019050919050565b600061409e8285613f92565b91506140aa8284614015565b91506140b58261406f565b91508190509392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b600061411d602f836131b5565b9150614128826140c1565b604082019050919050565b6000602082019050818103600083015261414c81614110565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b60006141af6029836131b5565b91506141ba82614153565b604082019050919050565b600060208201905081810360008301526141de816141a2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061424e82613022565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036142805761427f614214565b5b600182019050919050565b7f4e6f20636c61696d73206166746572206275726e000000000000000000000000600082015250565b60006142c16014836131b5565b91506142cc8261428b565b602082019050919050565b600060208201905081810360008301526142f0816142b4565b9050919050565b7f454f4173206f6e6c790000000000000000000000000000000000000000000000600082015250565b600061432d6009836131b5565b9150614338826142f7565b602082019050919050565b6000602082019050818103600083015261435c81614320565b9050919050565b7f546f6f206d616e79206164647265737365730000000000000000000000000000600082015250565b60006143996012836131b5565b91506143a482614363565b602082019050919050565b600060208201905081810360008301526143c88161438c565b9050919050565b7f50617469656e6365210000000000000000000000000000000000000000000000600082015250565b60006144056009836131b5565b9150614410826143cf565b602082019050919050565b60006020820190508181036000830152614434816143f8565b9050919050565b7f546f6f206c617465210000000000000000000000000000000000000000000000600082015250565b60006144716009836131b5565b915061447c8261443b565b602082019050919050565b600060208201905081810360008301526144a081614464565b9050919050565b7f43616e277420636c61696d20697420696620796f7520646f6e2774206f776e2060008201527f6974000000000000000000000000000000000000000000000000000000000000602082015250565b60006145036022836131b5565b915061450e826144a7565b604082019050919050565b60006020820190508181036000830152614532816144f6565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b600061456f600f836131b5565b915061457a82614539565b602082019050919050565b6000602082019050818103600083015261459e81614562565b9050919050565b50565b60006145b5600083613f72565b91506145c0826145a5565b600082019050919050565b60006145d6826145a8565b9150819050919050565b60006145eb82613022565b91506145f683613022565b925082820190508082111561460e5761460d614214565b5b92915050565b7f4e6f7420617574686f72697a656420746f206275726e2e000000000000000000600082015250565b600061464a6017836131b5565b915061465582614614565b602082019050919050565b600060208201905081810360008301526146798161463d565b9050919050565b600061468b82613022565b915061469683613022565b92508282039050818111156146ae576146ad614214565b5b92915050565b600082905092915050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261470c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826146cf565b61471686836146cf565b95508019841693508086168417925050509392505050565b6000819050919050565b600061475361474e61474984613022565b61472e565b613022565b9050919050565b6000819050919050565b61476d83614738565b6147816147798261475a565b8484546146dc565b825550505050565b600090565b614796614789565b6147a1818484614764565b505050565b5b818110156147c5576147ba60008261478e565b6001810190506147a7565b5050565b601f82111561480a576147db81613f7d565b6147e4846146bf565b810160208510156147f3578190505b6148076147ff856146bf565b8301826147a6565b50505b505050565b600082821c905092915050565b600061482d6000198460080261480f565b1980831691505092915050565b6000614846838361481c565b9150826002028217905092915050565b61486083836146b4565b67ffffffffffffffff8111156148795761487861328e565b5b6148838254613ed5565b61488e8282856147c9565b6000601f8311600181146148bd57600084156148ab578287013590505b6148b5858261483a565b86555061491d565b601f1984166148cb86613f7d565b60005b828110156148f3578489013582556001820191506020850194506020810190506148ce565b86831015614910578489013561490c601f89168261481c565b8355505b6001600288020188555050505b50505050505050565b7f4e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b600061495c600b836131b5565b915061496782614926565b602082019050919050565b6000602082019050818103600083015261498b8161494f565b9050919050565b7f4c656e677468206f66206964732069732077726f6e6700000000000000000000600082015250565b60006149c86016836131b5565b91506149d382614992565b602082019050919050565b600060208201905081810360008301526149f7816149bb565b9050919050565b60008160601b9050919050565b6000614a16826149fe565b9050919050565b6000614a2882614a0b565b9050919050565b614a40614a3b82612fe4565b614a1d565b82525050565b6000819050919050565b614a61614a5c82613022565b614a46565b82525050565b600081905092915050565b600080fd5b82818337505050565b6000614a8c8385614a67565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614abf57614abe614a72565b5b602083029250614ad0838584614a77565b82840190509392505050565b6000614ae88287614a2f565b601482019150614af88286614a50565b602082019150614b09828486614a80565b915081905095945050505050565b7f496e76616c69642070726f6f662e000000000000000000000000000000000000600082015250565b6000614b4d600e836131b5565b9150614b5882614b17565b602082019050919050565b60006020820190508181036000830152614b7c81614b40565b9050919050565b7f416c7265616479206275726e65642e0000000000000000000000000000000000600082015250565b6000614bb9600f836131b5565b9150614bc482614b83565b602082019050919050565b60006020820190508181036000830152614be881614bac565b9050919050565b7f6275726e2c626162792c6275726e000000000000000000000000000000000000600082015250565b6000614c25600e83613f72565b9150614c3082614bef565b600e82019050919050565b6000614c4682614c18565b9150819050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614cac6026836131b5565b9150614cb782614c50565b604082019050919050565b60006020820190508181036000830152614cdb81614c9f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614d1c82613022565b9150614d2783613022565b925082614d3757614d36614ce2565b5b828204905092915050565b6000614d4d82613022565b9150614d5883613022565b925082614d6857614d67614ce2565b5b828206905092915050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614dcf6028836131b5565b9150614dda82614d73565b604082019050919050565b60006020820190508181036000830152614dfe81614dc2565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614e616025836131b5565b9150614e6c82614e05565b604082019050919050565b60006020820190508181036000830152614e9081614e54565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614ef3602a836131b5565b9150614efe82614e97565b604082019050919050565b60006020820190508181036000830152614f2281614ee6565b9050919050565b60006040820190508181036000830152614f43818561374e565b90508181036020830152614f57818461374e565b90509392505050565b600081519050614f6f8161302c565b92915050565b6000614f88614f8384613309565b6132ee565b90508083825260208201905060208402830185811115614fab57614faa613335565b5b835b81811015614fd45780614fc08882614f60565b845260208401935050602081019050614fad565b5050509392505050565b600082601f830112614ff357614ff2613289565b5b8151615003848260208601614f75565b91505092915050565b60006020828403121561502257615021612fba565b5b600082015167ffffffffffffffff8111156150405761503f612fbf565b5b61504c84828501614fde565b91505092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006150b16021836131b5565b91506150bc82615055565b604082019050919050565b600060208201905081810360008301526150e0816150a4565b9050919050565b60006040820190506150fc6000830185613098565b6151096020830184613098565b9392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061516c6023836131b5565b915061517782615110565b604082019050919050565b6000602082019050818103600083015261519b8161515f565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006151fe6024836131b5565b9150615209826151a2565b604082019050919050565b6000602082019050818103600083015261522d816151f1565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006152906029836131b5565b915061529b82615234565b604082019050919050565b600060208201905081810360008301526152bf81615283565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006152ed826152c6565b6152f781856152d1565b93506153078185602086016131c6565b615310816131f0565b840191505092915050565b600060a0820190506153306000830188613589565b61533d6020830187613589565b818103604083015261534f818661374e565b90508181036060830152615363818561374e565b9050818103608083015261537781846152e2565b90509695505050505050565b600081519050615392816130ee565b92915050565b6000602082840312156153ae576153ad612fba565b5b60006153bc84828501615383565b91505092915050565b60008160e01c9050919050565b600060033d11156153f15760046000803e6153ee6000516153c5565b90505b90565b600060443d1061548157615406612fb0565b60043d036004823e80513d602482011167ffffffffffffffff8211171561542e575050615481565b808201805167ffffffffffffffff81111561544c5750505050615481565b80602083010160043d038501811115615469575050505050615481565b615478826020018501866132bd565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006154e06034836131b5565b91506154eb82615484565b604082019050919050565b6000602082019050818103600083015261550f816154d3565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006155726028836131b5565b915061557d82615516565b604082019050919050565b600060208201905081810360008301526155a181615565565b9050919050565b600060a0820190506155bd6000830188613589565b6155ca6020830187613589565b6155d76040830186613098565b6155e46060830185613098565b81810360808301526155f681846152e2565b9050969550505050505056fea26469706673582212202e7f203f41ac743352162b35b72c0b6607302ce4775db1d72f2e811703c31ba364736f6c63430008110033

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

00000000000000000000000031d45de84fde2fb36575085e05754a4932dd5170

-----Decoded View---------------
Arg [0] : _raycAddress (address): 0x31d45de84fdE2fB36575085e05754a4932DD5170

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000031d45de84fde2fb36575085e05754a4932dd5170


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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