ETH Price: $2,636.34 (+0.75%)

Token

 

Overview

Max Total Supply

130

Holders

89

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
joebiden.eth
0x72FAe93d08A060A7f0A8919708c0Db74Ca46cbB6
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LordsAlpha

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : LordsAlpha.sol
// SPDX-License-Identifier: UNLICENSED
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Tokens/ERC1155Guardable.sol";

pragma solidity ^0.8.17;

error WrongValueSent();
error ExceedMaxPerWallet();
error PublicSaleNotStarted();
error AllowlistSaleNotActive();
error AlreadyMinted();
error InvalidProof();
error ExceedMaxSupply();
error NotEnoughStaked();
error MinimumNotHit();

struct StakeDetails {
    uint16 numStaked;
    uint64 stakingStart; 
}

struct PhaseDetails {
    bytes32 root;
    uint64 startTime;
    uint64 endTime;
}

struct NumberMintedPerPhase {
    uint8 phaseOne;
    uint8 phaseTwo;
    uint8 phaseThree;
}

contract LordsAlpha is ERC1155Guardable, Ownable {
    /** @notice MAX_SUPPLY refers to the max supply that is available for the initial mint. The team
      * also has an airdroppable supply of 55 tokens. The final max supply will be 777, and will be set
      * at a later date. This transition from 500 to 777 can happen only once, and the max supply can
      * never exceed 777.
    **/
    uint256 public MAX_SUPPLY = 555;
    uint256 private constant FINAL_MAX_SUPPLY = 777;
    uint256 public constant MINT_PRICE = 0.18 ether;
    uint256 public constant MAX_PER_WALLET_PER_PHASE = 2;
    uint64 public constant MINIMUM_TIME_STAKED_FOR_PREMIUM_REDEMPTION = 90 days;

    uint256 private constant ALPHA_PASS = 1;
    uint256 private constant PREMIUM_PASS = 2;

    mapping(uint256 => uint256) public totalSupply;
    mapping(address => NumberMintedPerPhase) numberMinted;

    mapping(address => StakeDetails) public stakeDetailsFor;

    PhaseDetails public phaseOneDetails;
    PhaseDetails public phaseTwoDetails;

    constructor(bytes32 _phaseOneWhitelistRoot, bytes32 _phaseTwoWhitelistRoot, uint64 startTime) ERC1155Guardable("ipfs://QmQknSe1awZqKUJfTfHo2awHo9UFXkumC4egHRbjt76tKf/") {
        phaseOneDetails = PhaseDetails(_phaseOneWhitelistRoot, startTime, startTime + 2 hours);
        phaseTwoDetails = PhaseDetails(_phaseTwoWhitelistRoot, phaseOneDetails.endTime, phaseOneDetails.endTime + 22 hours);
    }

    function mintAllowlist(bytes32[] calldata proof, uint256 amount) external payable {
        if (block.timestamp < phaseOneDetails.startTime || block.timestamp >= phaseTwoDetails.endTime) revert AllowlistSaleNotActive();
        if (block.timestamp < phaseOneDetails.endTime) {
            if (numberMinted[msg.sender].phaseOne + amount > MAX_PER_WALLET_PER_PHASE) revert ExceedMaxPerWallet();
            numberMinted[msg.sender].phaseOne += uint8(amount);
        } else {
            if (numberMinted[msg.sender].phaseTwo + amount > MAX_PER_WALLET_PER_PHASE) revert ExceedMaxPerWallet();
            numberMinted[msg.sender].phaseTwo += uint8(amount);
        }

        _validateSender(proof);

        _mintAlpha(amount);
    }

    function mintPublic(uint256 amount) external payable {
        if (block.timestamp < phaseTwoDetails.endTime) revert PublicSaleNotStarted();
        if (numberMinted[msg.sender].phaseThree + amount > MAX_PER_WALLET_PER_PHASE) revert ExceedMaxPerWallet();
        numberMinted[msg.sender].phaseThree += uint8(amount);

        _mintAlpha(amount);
    }

    function stakeAlphaPass(uint16 amount) external {
        _safeTransferFrom(msg.sender, address(this), 1, amount, "");
        uint16 numStaked = stakeDetailsFor[msg.sender].numStaked + amount;
        if (numStaked >= 2 && stakeDetailsFor[msg.sender].numStaked < 2) stakeDetailsFor[msg.sender].stakingStart = uint64(block.timestamp);
        stakeDetailsFor[msg.sender].numStaked += amount;
    }

    function withdrawAlphaPass(uint16 amount) external {
        if (amount > stakeDetailsFor[msg.sender].numStaked) revert NotEnoughStaked();
        stakeDetailsFor[msg.sender].numStaked -= amount;
        if (stakeDetailsFor[msg.sender].numStaked < 2) stakeDetailsFor[msg.sender].stakingStart = 0;
        _safeTransferFrom(address(this), msg.sender, 1, amount, "");
    }

    function redeemForPremium() external {
        if (block.timestamp - stakeDetailsFor[msg.sender].stakingStart < MINIMUM_TIME_STAKED_FOR_PREMIUM_REDEMPTION) revert MinimumNotHit();
        if (stakeDetailsFor[msg.sender].numStaked < 2) revert NotEnoughStaked();
        stakeDetailsFor[msg.sender].numStaked -= 2;
        if (stakeDetailsFor[msg.sender].numStaked < 2) {
            stakeDetailsFor[msg.sender].stakingStart = 0;
        } else {
            stakeDetailsFor[msg.sender].stakingStart = uint64(block.timestamp);
        }

        _burn(address(this), 1, 2);
        _mint(msg.sender, PREMIUM_PASS, 1, "");
    }

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

    function setUri(string memory _uri) external onlyOwner {
        _setURI(_uri);
    }

    function airdrop(address[] calldata owners, uint[] calldata amounts) external onlyOwner {
        if (owners.length != amounts.length) revert();

        for (uint256 i = 0; i < owners.length; i++) {
            uint256 amount = amounts[i];
            if (totalSupply[ALPHA_PASS] + amount > FINAL_MAX_SUPPLY) revert ExceedMaxSupply();
            totalSupply[ALPHA_PASS] += amount;

            _mint(owners[i], ALPHA_PASS, amount, "");
        }
    }

    function setRoots(bytes32 _root1, bytes32 _root2) external onlyOwner {
        phaseOneDetails.root = _root1;
        phaseTwoDetails.root  = _root2;
    }

    function bumpToFinalMaxSupply() external onlyOwner {
        MAX_SUPPLY = FINAL_MAX_SUPPLY;
    }

    function withdraw() external onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        if (!success) revert WrongValueSent();
    }

    function onERC1155Received(address, address, uint256, uint256, bytes memory) public pure returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function _validateSender(bytes32[] memory _proof) private view {
        bytes32 leaf = keccak256((abi.encodePacked(msg.sender)));
        bytes32 root = _getRoot();

        if (!MerkleProof.verify(_proof, root, leaf)) {
            revert InvalidProof();
        }
    }

    function _getRoot() private view returns (bytes32) {
        return block.timestamp < phaseOneDetails.endTime ? phaseOneDetails.root : phaseTwoDetails.root;
    }

    function _mintAlpha(uint256 amount) internal {
        if (msg.value != MINT_PRICE * amount) revert WrongValueSent();
        if (totalSupply[ALPHA_PASS] + amount > MAX_SUPPLY) revert ExceedMaxSupply();
        totalSupply[ALPHA_PASS] += amount;
        _mint(msg.sender, ALPHA_PASS, amount, "");
    }

    /**
    * @dev From @chiru-labs ERC721a. Converts a uint256 to its ASCII string decimal representation.
    */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 2 of 15 : ERC1155Guardable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "../Guardable.sol";

/**
 * @dev Contract module which provides added security functionality, where
 * where an account can assign a guardian to protect their NFTs. While a guardian
 * is assigned, setApprovalForAll is locked. New approvals cannot be set. There can
 * only ever be one guardian per account, and setting a new guardian will overwrite
 * any existing one.
 *
 * Existing approvals can still be leveraged as normal, and it is expected that this
 * functionality be used after a user has set the approvals they want to set. Approvals
 * can still be removed while a guardian is set.
 * 
 * Setting a guardian has no effect on transfers, so users can move assets to a new wallet
 * to effectively "clear" guardians if a guardian is maliciously set, or keys to a guardian
 * are lost.
 *
 * It is not recommended to use _lockToSelf, as removing this lock would be easily added to
 * a malicious workflow, whereas removing a traditional lock from a guardian account would
 * be sufficiently prohibitive.
 *
 * This is less effective at guarding than ERC721Guardable because of the existence of
 * safeBatchTransferFrom, so it is important to remain careful.
 */

contract ERC1155Guardable is Guardable, ERC1155 {

  constructor(string memory _uri) ERC1155(_uri) {}
  
  function supportsInterface(bytes4 interfaceId) public view virtual override(Guardable, ERC1155) returns (bool) {
    return Guardable.supportsInterface(interfaceId) || ERC1155.supportsInterface(interfaceId);
  }

  function setApprovalForAll(address operator, bool approved) public override {
    if (locks[msg.sender] != address(0) && approved) {
      revert TokenIsLocked();
    }

    super.setApprovalForAll(operator, approved);
  }
}

File 3 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 4 of 15 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 15 : Guardable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "./IGuardable.sol";

/**
* Abstract contract to be used with ERC1155 or ERC721 or their extensions.
* See ERC721Guardable or ERC1155Guardable for examples of how to overwrite
* setApprovalForAll and approve to be Guardable. Overwriting other functions
* is possible but not recommended.
*/
abstract contract Guardable is IGuardable {
  mapping(address => address) internal locks;

  function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
    return interfaceId == type(IGuardable).interfaceId;
  }

  function setGuardian(address guardian) public {
    if (msg.sender == guardian || guardian == address(0)) {
      revert InvalidGuardian();
    }

    locks[msg.sender] = guardian;
    emit GuardianAdded(msg.sender, guardian);
  }

  function guardianOf(address tokenOwner) public view returns (address) {
    return locks[tokenOwner];
  }

  function removeGuardianOf(address tokenOwner) external {
    if (msg.sender != guardianOf(tokenOwner)) {
      revert CallerGuardianMismatch(msg.sender, guardianOf(tokenOwner));
    }
    delete locks[tokenOwner];
    emit GuardianRemoved(tokenOwner);
  }

  function _lockToSelf() internal virtual {
    locks[msg.sender] = msg.sender;
    emit GuardianAdded(msg.sender, msg.sender);
  }
}

File 6 of 15 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 or 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 or 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 7 of 15 : 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 8 of 15 : IGuardable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface IGuardable is IERC165 {
  // Interface ID 0x126f5523

  error TokenIsLocked();
  error CallerGuardianMismatch(address caller, address guardian);
  error InvalidGuardian();

  event GuardianAdded(address indexed addressGuarded, address indexed guardian);
  event GuardianRemoved(address indexed addressGuarded);

  function setGuardian(address guardian) external;

  function removeGuardianOf(address tokenOwner) external;

  function guardianOf(address tokenOwner) external view returns (address);
}

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

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

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

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

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

File 10 of 15 : 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 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 12 of 15 : 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 13 of 15 : 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 14 of 15 : 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;
}

File 15 of 15 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"_phaseOneWhitelistRoot","type":"bytes32"},{"internalType":"bytes32","name":"_phaseTwoWhitelistRoot","type":"bytes32"},{"internalType":"uint64","name":"startTime","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowlistSaleNotActive","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"address","name":"guardian","type":"address"}],"name":"CallerGuardianMismatch","type":"error"},{"inputs":[],"name":"ExceedMaxPerWallet","type":"error"},{"inputs":[],"name":"ExceedMaxSupply","type":"error"},{"inputs":[],"name":"InvalidGuardian","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"MinimumNotHit","type":"error"},{"inputs":[],"name":"NotEnoughStaked","type":"error"},{"inputs":[],"name":"PublicSaleNotStarted","type":"error"},{"inputs":[],"name":"TokenIsLocked","type":"error"},{"inputs":[],"name":"WrongValueSent","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addressGuarded","type":"address"},{"indexed":true,"internalType":"address","name":"guardian","type":"address"}],"name":"GuardianAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addressGuarded","type":"address"}],"name":"GuardianRemoved","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":"MAX_PER_WALLET_PER_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_TIME_STAKED_FOR_PREMIUM_REDEMPTION","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bumpToFinalMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"guardianOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintAllowlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","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":"phaseOneDetails","outputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"endTime","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phaseTwoDetails","outputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"endTime","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemForPremium","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"removeGuardianOf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"guardian","type":"address"}],"name":"setGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root1","type":"bytes32"},{"internalType":"bytes32","name":"_root2","type":"bytes32"}],"name":"setRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"stakeAlphaPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakeDetailsFor","outputs":[{"internalType":"uint16","name":"numStaked","type":"uint16"},{"internalType":"uint64","name":"stakingStart","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"withdrawAlphaPass","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405261022b6005553480156200001757600080fd5b5060405162005b5b38038062005b5b83398181016040528101906200003d919062000385565b60405180606001604052806036815260200162005b25603691398062000069816200021d60201b60201c565b50506200008b6200007f6200023260201b60201c565b6200023a60201b60201c565b60405180606001604052808481526020018267ffffffffffffffff168152602001611c2083620000bc919062000410565b67ffffffffffffffff1681525060096000820151816000015560208201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506040518060600160405280838152602001600960010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16815260200162013560600960010160089054906101000a900467ffffffffffffffff166200019a919062000410565b67ffffffffffffffff16815250600b6000820151816000015560208201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050505050620007b4565b80600390816200022e9190620006cd565b5050565b600033905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b6000819050919050565b6200031a8162000305565b81146200032657600080fd5b50565b6000815190506200033a816200030f565b92915050565b600067ffffffffffffffff82169050919050565b6200035f8162000340565b81146200036b57600080fd5b50565b6000815190506200037f8162000354565b92915050565b600080600060608486031215620003a157620003a062000300565b5b6000620003b18682870162000329565b9350506020620003c48682870162000329565b9250506040620003d7868287016200036e565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200041d8262000340565b91506200042a8362000340565b9250828201905067ffffffffffffffff8111156200044d576200044c620003e1565b5b92915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004d557607f821691505b602082108103620004eb57620004ea6200048d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000516565b62000561868362000516565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005ae620005a8620005a28462000579565b62000583565b62000579565b9050919050565b6000819050919050565b620005ca836200058d565b620005e2620005d982620005b5565b84845462000523565b825550505050565b600090565b620005f9620005ea565b62000606818484620005bf565b505050565b5b818110156200062e5762000622600082620005ef565b6001810190506200060c565b5050565b601f8211156200067d576200064781620004f1565b620006528462000506565b8101602085101562000662578190505b6200067a620006718562000506565b8301826200060b565b50505b505050565b600082821c905092915050565b6000620006a26000198460080262000682565b1980831691505092915050565b6000620006bd83836200068f565b9150826002028217905092915050565b620006d88262000453565b67ffffffffffffffff811115620006f457620006f36200045e565b5b620007008254620004bc565b6200070d82828562000632565b600060209050601f83116001811462000745576000841562000730578287015190505b6200073c8582620006af565b865550620007ac565b601f1984166200075586620004f1565b60005b828110156200077f5784890151825560018201915060208501945060208101905062000758565b868310156200079f57848901516200079b601f8916826200068f565b8355505b6001600288020188555050505b505050505050565b61536180620007c46000396000f3fe6080604052600436106101ed5760003560e01c80638da5cb5b1161010d578063c588a0bd116100a0578063f23a6e611161006f578063f23a6e61146106cc578063f242432a14610709578063f2fde38b14610732578063f6d825991461075b578063fc20db5014610777576101ed565b8063c588a0bd14610631578063d9fd67a614610648578063e985e9c514610673578063efd0cbf9146106b0576101ed565b8063ab864ad9116100dc578063ab864ad914610563578063acd52e8d1461058c578063bd85b039146105c9578063c002d23d14610606576101ed565b80638da5cb5b146104a85780639b642de1146104d3578063a04d9496146104fc578063a22cb4651461053a576101ed565b80633ccfd60b1161018557806367243482116101545780636724348214610416578063715018a61461043f578063774e51e1146104565780638a0dac4a1461047f576101ed565b80633ccfd60b1461037e5780634e1273f4146103955780634f4cddbc146103d2578063564d1bc4146103e9576101ed565b80631df9e9d8116101c15780631df9e9d8146102d65780632eb2c2d61461030157806332cb6b0c1461032a57806334b7d7e414610355576101ed565b8062fdd58e146101f257806301ffc9a71461022f57806302b22f911461026c5780630e89341c14610299575b600080fd5b3480156101fe57600080fd5b50610219600480360381019061021491906135b5565b6107a0565b6040516102269190613604565b60405180910390f35b34801561023b57600080fd5b5061025660048036038101906102519190613677565b610869565b60405161026391906136bf565b60405180910390f35b34801561027857600080fd5b5061028161088b565b60405161029093929190613716565b60405180910390f35b3480156102a557600080fd5b506102c060048036038101906102bb919061374d565b6108cb565b6040516102cd919061380a565b60405180910390f35b3480156102e257600080fd5b506102eb610906565b6040516102f89190613604565b60405180910390f35b34801561030d57600080fd5b5061032860048036038101906103239190613a29565b61090b565b005b34801561033657600080fd5b5061033f6109ac565b60405161034c9190613604565b60405180910390f35b34801561036157600080fd5b5061037c60048036038101906103779190613af8565b6109b2565b005b34801561038a57600080fd5b50610393610adb565b005b3480156103a157600080fd5b506103bc60048036038101906103b79190613be8565b610b89565b6040516103c99190613d1e565b60405180910390f35b3480156103de57600080fd5b506103e7610ca2565b005b3480156103f557600080fd5b506103fe610cb5565b60405161040d93929190613716565b60405180910390f35b34801561042257600080fd5b5061043d60048036038101906104389190613df1565b610cf5565b005b34801561044b57600080fd5b50610454610e1f565b005b34801561046257600080fd5b5061047d60048036038101906104789190613eac565b610e33565b005b34801561048b57600080fd5b506104a660048036038101906104a19190613af8565b611009565b005b3480156104b457600080fd5b506104bd611180565b6040516104ca9190613ee8565b60405180910390f35b3480156104df57600080fd5b506104fa60048036038101906104f59190613fa4565b6111aa565b005b34801561050857600080fd5b50610523600480360381019061051e9190613af8565b6111be565b604051610531929190613ffc565b60405180910390f35b34801561054657600080fd5b50610561600480360381019061055c9190614051565b611204565b005b34801561056f57600080fd5b5061058a600480360381019061058591906140bd565b6112e1565b005b34801561059857600080fd5b506105b360048036038101906105ae9190613af8565b611301565b6040516105c09190613ee8565b60405180910390f35b3480156105d557600080fd5b506105f060048036038101906105eb919061374d565b611369565b6040516105fd9190613604565b60405180910390f35b34801561061257600080fd5b5061061b611381565b6040516106289190613604565b60405180910390f35b34801561063d57600080fd5b5061064661138d565b005b34801561065457600080fd5b5061065d6116aa565b60405161066a91906140fd565b60405180910390f35b34801561067f57600080fd5b5061069a60048036038101906106959190614118565b6116b1565b6040516106a791906136bf565b60405180910390f35b6106ca60048036038101906106c5919061374d565b611745565b005b3480156106d857600080fd5b506106f360048036038101906106ee9190614158565b6118bc565b60405161070091906141fe565b60405180910390f35b34801561071557600080fd5b50610730600480360381019061072b9190614158565b6118d1565b005b34801561073e57600080fd5b5061075960048036038101906107549190613af8565b611972565b005b6107756004803603810190610770919061426f565b6119f5565b005b34801561078357600080fd5b5061079e60048036038101906107999190613eac565b611d25565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610810576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080790614341565b60405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061087482611f1c565b80610884575061088382611f86565b5b9050919050565b600b8060000154908060010160009054906101000a900467ffffffffffffffff16908060010160089054906101000a900467ffffffffffffffff16905083565b60606108d682612068565b6108df836120fc565b6040516020016108f092919061439d565b6040516020818303038152906040529050919050565b600281565b61091361214c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061095957506109588561095361214c565b6116b1565b5b610998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098f90614433565b60405180910390fd5b6109a58585858585612154565b5050505050565b60055481565b6109bb81611301565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a3457336109f782611301565b6040517fe6364b8e000000000000000000000000000000000000000000000000000000008152600401610a2b929190614453565b60405180910390fd5b6000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690558073ffffffffffffffffffffffffffffffffffffffff167fb8107d0c6b40be480ce3172ee66ba6d64b71f6b1685a851340036e6e2e3e3c5260405160405180910390a250565b610ae3612478565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610b09906144ad565b60006040518083038185875af1925050503d8060008114610b46576040519150601f19603f3d011682016040523d82523d6000602084013e610b4b565b606091505b5050905080610b86576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b60608151835114610bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc690614534565b60405180910390fd5b6000835167ffffffffffffffff811115610bec57610beb613831565b5b604051908082528060200260200182016040528015610c1a5781602001602082028036833780820191505090505b50905060005b8451811015610c9757610c67858281518110610c3f57610c3e614554565b5b6020026020010151858381518110610c5a57610c59614554565b5b60200260200101516107a0565b828281518110610c7a57610c79614554565b5b60200260200101818152505080610c90906145b2565b9050610c20565b508091505092915050565b610caa612478565b610309600581905550565b60098060000154908060010160009054906101000a900467ffffffffffffffff16908060010160089054906101000a900467ffffffffffffffff16905083565b610cfd612478565b818190508484905014610d0f57600080fd5b60005b84849050811015610e18576000838383818110610d3257610d31614554565b5b90506020020135905061030981600660006001815260200190815260200160002054610d5e91906145fa565b1115610d96576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000600181526020019081526020016000206000828254610dba91906145fa565b92505081905550610e04868684818110610dd757610dd6614554565b5b9050602002016020810190610dec9190613af8565b600183604051806020016040528060008152506124f6565b508080610e10906145b2565b915050610d12565b5050505050565b610e27612478565b610e3160006126a7565b565b610e54333060018461ffff166040518060200160405280600081525061276d565b600081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff16610eb2919061462e565b905060028161ffff1610158015610f1d57506002600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff16105b15610f8c5742600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b81600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff16610feb919061462e565b92506101000a81548161ffff021916908361ffff1602179055505050565b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061106f5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156110a6576040517fa6c1146b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fbc3292102fa77e083913064b282926717cdfaede4d35f553d66366c0a3da755a60405160405180910390a350565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6111b2612478565b6111bb81612a0b565b50565b60086020528060005260406000206000915090508060000160009054906101000a900461ffff16908060000160029054906101000a900467ffffffffffffffff16905082565b600073ffffffffffffffffffffffffffffffffffffffff166000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415801561129c5750805b156112d3576040517fc066bae700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112dd8282612a1e565b5050565b6112e9612478565b8160096000018190555080600b600001819055505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60066020528060005260406000206000915090505481565b67027f7d0bdb92000081565b6276a70067ffffffffffffffff16600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160029054906101000a900467ffffffffffffffff1667ffffffffffffffff16426114079190614664565b101561143f576040517f723db4a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff1610156114ce576040517f86a76f7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff1661152e9190614698565b92506101000a81548161ffff021916908361ffff1602179055506002600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff161015611614576000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061167e565b42600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b61168b3060016002612a34565b6116a83360026001604051806020016040528060008152506124f6565b565b6276a70081565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b60010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff164210156117a2576040517fac4d09c700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600281600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160029054906101000a900460ff1660ff1661180291906145fa565b111561183a576040517fd900aa8a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160028282829054906101000a900460ff1661189891906146db565b92506101000a81548160ff021916908360ff1602179055506118b981612c7c565b50565b600063f23a6e6160e01b905095945050505050565b6118d961214c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061191f575061191e8561191961214c565b6116b1565b5b61195e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195590614433565b60405180910390fd5b61196b858585858561276d565b5050505050565b61197a612478565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e090614782565b60405180910390fd5b6119f2816126a7565b50565b600960010160009054906101000a900467ffffffffffffffff1667ffffffffffffffff16421080611a495750600b60010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff164210155b15611a80576040517f1892035a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600960010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16421015611bbe57600281600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff1660ff16611b0b91906145fa565b1115611b43576040517fd900aa8a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900460ff16611ba191906146db565b92506101000a81548160ff021916908360ff160217905550611ccd565b600281600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160019054906101000a900460ff1660ff16611c1e91906145fa565b1115611c56576040517fd900aa8a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160018282829054906101000a900460ff16611cb491906146db565b92506101000a81548160ff021916908360ff1602179055505b611d17838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612d6d565b611d2081612c7c565b505050565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff168161ffff161115611db7576040517f86a76f7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff16611e169190614698565b92506101000a81548161ffff021916908361ffff1602179055506002600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff161015611ef8576000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b611f19303360018461ffff166040518060200160405280600081525061276d565b50565b60007f126f5523000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061205157507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612061575061206082612dea565b5b9050919050565b606060038054612077906147d1565b80601f01602080910402602001604051908101604052809291908181526020018280546120a3906147d1565b80156120f05780601f106120c5576101008083540402835291602001916120f0565b820191906000526020600020905b8154815290600101906020018083116120d357829003601f168201915b50505050509050919050565b606060a060405101806040526020810391506000825281835b60011561213757600184039350600a81066030018453600a8104905080612115575b50828103602084039350808452505050919050565b600033905090565b8151835114612198576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218f90614874565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121fe90614906565b60405180910390fd5b600061221161214c565b9050612221818787878787612e54565b60005b84518110156123d557600085828151811061224257612241614554565b5b60200260200101519050600085838151811061226157612260614554565b5b6020026020010151905060006001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122fa90614998565b60405180910390fd5b8181036001600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123ba91906145fa565b92505081905550505050806123ce906145b2565b9050612224565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161244c9291906149b8565b60405180910390a4612462818787878787612e5c565b612470818787878787612e64565b505050505050565b61248061214c565b73ffffffffffffffffffffffffffffffffffffffff1661249e611180565b73ffffffffffffffffffffffffffffffffffffffff16146124f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124eb90614a3b565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255c90614acd565b60405180910390fd5b600061256f61214c565b9050600061257c8561303b565b905060006125898561303b565b905061259a83600089858589612e54565b846001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125fa91906145fa565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612678929190614aed565b60405180910390a461268f83600089858589612e5c565b61269e836000898989896130b5565b50505050505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036127dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d390614906565b60405180910390fd5b60006127e661214c565b905060006127f38561303b565b905060006128008561303b565b9050612810838989858589612e54565b60006001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156128a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289f90614998565b60405180910390fd5b8581036001600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856001600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461295f91906145fa565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516129dc929190614aed565b60405180910390a46129f2848a8a86868a612e5c565b612a00848a8a8a8a8a6130b5565b505050505050505050565b8060039081612a1a9190614cc2565b5050565b612a30612a2961214c565b838361328c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9a90614e06565b60405180910390fd5b6000612aad61214c565b90506000612aba8461303b565b90506000612ac78461303b565b9050612ae783876000858560405180602001604052806000815250612e54565b60006001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7690614e98565b60405180910390fd5b8481036001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612c4d929190614aed565b60405180910390a4612c7384886000868660405180602001604052806000815250612e5c565b50505050505050565b8067027f7d0bdb920000612c909190614eb8565b3414612cc8576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60055481600660006001815260200190815260200160002054612ceb91906145fa565b1115612d23576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000600181526020019081526020016000206000828254612d4791906145fa565b92505081905550612d6a33600183604051806020016040528060008152506124f6565b50565b600033604051602001612d809190614f42565b6040516020818303038152906040528051906020012090506000612da26133f8565b9050612daf83828461343b565b612de5576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050505050565b505050505050565b612e838473ffffffffffffffffffffffffffffffffffffffff16613452565b15613033578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612ec9959493929190614fb2565b6020604051808303816000875af1925050508015612f0557506040513d601f19601f82011682018060405250810190612f02919061502f565b60015b612faa57612f11615069565b806308c379a003612f6d5750612f2561508b565b80612f305750612f6f565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f64919061380a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa19061518d565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613031576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130289061521f565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff81111561305a57613059613831565b5b6040519080825280602002602001820160405280156130885781602001602082028036833780820191505090505b50905082816000815181106130a05761309f614554565b5b60200260200101818152505080915050919050565b6130d48473ffffffffffffffffffffffffffffffffffffffff16613452565b15613284578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161311a95949392919061523f565b6020604051808303816000875af192505050801561315657506040513d601f19601f82011682018060405250810190613153919061502f565b60015b6131fb57613162615069565b806308c379a0036131be575061317661508b565b8061318157506131c0565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b5919061380a565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f29061518d565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613282576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132799061521f565b60405180910390fd5b505b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036132fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132f19061530b565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516133eb91906136bf565b60405180910390a3505050565b6000600960010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16421061342f57600b60000154613436565b6009600001545b905090565b6000826134488584613475565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008082905060005b84518110156134c0576134ab8286838151811061349e5761349d614554565b5b60200260200101516134cb565b915080806134b8906145b2565b91505061347e565b508091505092915050565b60008183106134e3576134de82846134f6565b6134ee565b6134ed83836134f6565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061354c82613521565b9050919050565b61355c81613541565b811461356757600080fd5b50565b60008135905061357981613553565b92915050565b6000819050919050565b6135928161357f565b811461359d57600080fd5b50565b6000813590506135af81613589565b92915050565b600080604083850312156135cc576135cb613517565b5b60006135da8582860161356a565b92505060206135eb858286016135a0565b9150509250929050565b6135fe8161357f565b82525050565b600060208201905061361960008301846135f5565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6136548161361f565b811461365f57600080fd5b50565b6000813590506136718161364b565b92915050565b60006020828403121561368d5761368c613517565b5b600061369b84828501613662565b91505092915050565b60008115159050919050565b6136b9816136a4565b82525050565b60006020820190506136d460008301846136b0565b92915050565b6000819050919050565b6136ed816136da565b82525050565b600067ffffffffffffffff82169050919050565b613710816136f3565b82525050565b600060608201905061372b60008301866136e4565b6137386020830185613707565b6137456040830184613707565b949350505050565b60006020828403121561376357613762613517565b5b6000613771848285016135a0565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137b4578082015181840152602081019050613799565b60008484015250505050565b6000601f19601f8301169050919050565b60006137dc8261377a565b6137e68185613785565b93506137f6818560208601613796565b6137ff816137c0565b840191505092915050565b6000602082019050818103600083015261382481846137d1565b905092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613869826137c0565b810181811067ffffffffffffffff8211171561388857613887613831565b5b80604052505050565b600061389b61350d565b90506138a78282613860565b919050565b600067ffffffffffffffff8211156138c7576138c6613831565b5b602082029050602081019050919050565b600080fd5b60006138f06138eb846138ac565b613891565b90508083825260208201905060208402830185811115613913576139126138d8565b5b835b8181101561393c578061392888826135a0565b845260208401935050602081019050613915565b5050509392505050565b600082601f83011261395b5761395a61382c565b5b813561396b8482602086016138dd565b91505092915050565b600080fd5b600067ffffffffffffffff82111561399457613993613831565b5b61399d826137c0565b9050602081019050919050565b82818337600083830152505050565b60006139cc6139c784613979565b613891565b9050828152602081018484840111156139e8576139e7613974565b5b6139f38482856139aa565b509392505050565b600082601f830112613a1057613a0f61382c565b5b8135613a208482602086016139b9565b91505092915050565b600080600080600060a08688031215613a4557613a44613517565b5b6000613a538882890161356a565b9550506020613a648882890161356a565b945050604086013567ffffffffffffffff811115613a8557613a8461351c565b5b613a9188828901613946565b935050606086013567ffffffffffffffff811115613ab257613ab161351c565b5b613abe88828901613946565b925050608086013567ffffffffffffffff811115613adf57613ade61351c565b5b613aeb888289016139fb565b9150509295509295909350565b600060208284031215613b0e57613b0d613517565b5b6000613b1c8482850161356a565b91505092915050565b600067ffffffffffffffff821115613b4057613b3f613831565b5b602082029050602081019050919050565b6000613b64613b5f84613b25565b613891565b90508083825260208201905060208402830185811115613b8757613b866138d8565b5b835b81811015613bb05780613b9c888261356a565b845260208401935050602081019050613b89565b5050509392505050565b600082601f830112613bcf57613bce61382c565b5b8135613bdf848260208601613b51565b91505092915050565b60008060408385031215613bff57613bfe613517565b5b600083013567ffffffffffffffff811115613c1d57613c1c61351c565b5b613c2985828601613bba565b925050602083013567ffffffffffffffff811115613c4a57613c4961351c565b5b613c5685828601613946565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613c958161357f565b82525050565b6000613ca78383613c8c565b60208301905092915050565b6000602082019050919050565b6000613ccb82613c60565b613cd58185613c6b565b9350613ce083613c7c565b8060005b83811015613d11578151613cf88882613c9b565b9750613d0383613cb3565b925050600181019050613ce4565b5085935050505092915050565b60006020820190508181036000830152613d388184613cc0565b905092915050565b600080fd5b60008083601f840112613d5b57613d5a61382c565b5b8235905067ffffffffffffffff811115613d7857613d77613d40565b5b602083019150836020820283011115613d9457613d936138d8565b5b9250929050565b60008083601f840112613db157613db061382c565b5b8235905067ffffffffffffffff811115613dce57613dcd613d40565b5b602083019150836020820283011115613dea57613de96138d8565b5b9250929050565b60008060008060408587031215613e0b57613e0a613517565b5b600085013567ffffffffffffffff811115613e2957613e2861351c565b5b613e3587828801613d45565b9450945050602085013567ffffffffffffffff811115613e5857613e5761351c565b5b613e6487828801613d9b565b925092505092959194509250565b600061ffff82169050919050565b613e8981613e72565b8114613e9457600080fd5b50565b600081359050613ea681613e80565b92915050565b600060208284031215613ec257613ec1613517565b5b6000613ed084828501613e97565b91505092915050565b613ee281613541565b82525050565b6000602082019050613efd6000830184613ed9565b92915050565b600067ffffffffffffffff821115613f1e57613f1d613831565b5b613f27826137c0565b9050602081019050919050565b6000613f47613f4284613f03565b613891565b905082815260208101848484011115613f6357613f62613974565b5b613f6e8482856139aa565b509392505050565b600082601f830112613f8b57613f8a61382c565b5b8135613f9b848260208601613f34565b91505092915050565b600060208284031215613fba57613fb9613517565b5b600082013567ffffffffffffffff811115613fd857613fd761351c565b5b613fe484828501613f76565b91505092915050565b613ff681613e72565b82525050565b60006040820190506140116000830185613fed565b61401e6020830184613707565b9392505050565b61402e816136a4565b811461403957600080fd5b50565b60008135905061404b81614025565b92915050565b6000806040838503121561406857614067613517565b5b60006140768582860161356a565b92505060206140878582860161403c565b9150509250929050565b61409a816136da565b81146140a557600080fd5b50565b6000813590506140b781614091565b92915050565b600080604083850312156140d4576140d3613517565b5b60006140e2858286016140a8565b92505060206140f3858286016140a8565b9150509250929050565b60006020820190506141126000830184613707565b92915050565b6000806040838503121561412f5761412e613517565b5b600061413d8582860161356a565b925050602061414e8582860161356a565b9150509250929050565b600080600080600060a0868803121561417457614173613517565b5b60006141828882890161356a565b95505060206141938882890161356a565b94505060406141a4888289016135a0565b93505060606141b5888289016135a0565b925050608086013567ffffffffffffffff8111156141d6576141d561351c565b5b6141e2888289016139fb565b9150509295509295909350565b6141f88161361f565b82525050565b600060208201905061421360008301846141ef565b92915050565b60008083601f84011261422f5761422e61382c565b5b8235905067ffffffffffffffff81111561424c5761424b613d40565b5b602083019150836020820283011115614268576142676138d8565b5b9250929050565b60008060006040848603121561428857614287613517565b5b600084013567ffffffffffffffff8111156142a6576142a561351c565b5b6142b286828701614219565b935093505060206142c5868287016135a0565b9150509250925092565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b600061432b602a83613785565b9150614336826142cf565b604082019050919050565b6000602082019050818103600083015261435a8161431e565b9050919050565b600081905092915050565b60006143778261377a565b6143818185614361565b9350614391818560208601613796565b80840191505092915050565b60006143a9828561436c565b91506143b5828461436c565b91508190509392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061441d602e83613785565b9150614428826143c1565b604082019050919050565b6000602082019050818103600083015261444c81614410565b9050919050565b60006040820190506144686000830185613ed9565b6144756020830184613ed9565b9392505050565b600081905092915050565b50565b600061449760008361447c565b91506144a282614487565b600082019050919050565b60006144b88261448a565b9150819050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061451e602983613785565b9150614529826144c2565b604082019050919050565b6000602082019050818103600083015261454d81614511565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006145bd8261357f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145ef576145ee614583565b5b600182019050919050565b60006146058261357f565b91506146108361357f565b925082820190508082111561462857614627614583565b5b92915050565b600061463982613e72565b915061464483613e72565b9250828201905061ffff81111561465e5761465d614583565b5b92915050565b600061466f8261357f565b915061467a8361357f565b925082820390508181111561469257614691614583565b5b92915050565b60006146a382613e72565b91506146ae83613e72565b9250828203905061ffff8111156146c8576146c7614583565b5b92915050565b600060ff82169050919050565b60006146e6826146ce565b91506146f1836146ce565b9250828201905060ff81111561470a57614709614583565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061476c602683613785565b915061477782614710565b604082019050919050565b6000602082019050818103600083015261479b8161475f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147e957607f821691505b6020821081036147fc576147fb6147a2565b5b50919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061485e602883613785565b915061486982614802565b604082019050919050565b6000602082019050818103600083015261488d81614851565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006148f0602583613785565b91506148fb82614894565b604082019050919050565b6000602082019050818103600083015261491f816148e3565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614982602a83613785565b915061498d82614926565b604082019050919050565b600060208201905081810360008301526149b181614975565b9050919050565b600060408201905081810360008301526149d28185613cc0565b905081810360208301526149e68184613cc0565b90509392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a25602083613785565b9150614a30826149ef565b602082019050919050565b60006020820190508181036000830152614a5481614a18565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614ab7602183613785565b9150614ac282614a5b565b604082019050919050565b60006020820190508181036000830152614ae681614aaa565b9050919050565b6000604082019050614b0260008301856135f5565b614b0f60208301846135f5565b9392505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614b787fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b3b565b614b828683614b3b565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614bbf614bba614bb58461357f565b614b9a565b61357f565b9050919050565b6000819050919050565b614bd983614ba4565b614bed614be582614bc6565b848454614b48565b825550505050565b600090565b614c02614bf5565b614c0d818484614bd0565b505050565b5b81811015614c3157614c26600082614bfa565b600181019050614c13565b5050565b601f821115614c7657614c4781614b16565b614c5084614b2b565b81016020851015614c5f578190505b614c73614c6b85614b2b565b830182614c12565b50505b505050565b600082821c905092915050565b6000614c9960001984600802614c7b565b1980831691505092915050565b6000614cb28383614c88565b9150826002028217905092915050565b614ccb8261377a565b67ffffffffffffffff811115614ce457614ce3613831565b5b614cee82546147d1565b614cf9828285614c35565b600060209050601f831160018114614d2c5760008415614d1a578287015190505b614d248582614ca6565b865550614d8c565b601f198416614d3a86614b16565b60005b82811015614d6257848901518255600182019150602085019450602081019050614d3d565b86831015614d7f5784890151614d7b601f891682614c88565b8355505b6001600288020188555050505b505050505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614df0602383613785565b9150614dfb82614d94565b604082019050919050565b60006020820190508181036000830152614e1f81614de3565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000614e82602483613785565b9150614e8d82614e26565b604082019050919050565b60006020820190508181036000830152614eb181614e75565b9050919050565b6000614ec38261357f565b9150614ece8361357f565b9250828202614edc8161357f565b91508282048414831517614ef357614ef2614583565b5b5092915050565b60008160601b9050919050565b6000614f1282614efa565b9050919050565b6000614f2482614f07565b9050919050565b614f3c614f3782613541565b614f19565b82525050565b6000614f4e8284614f2b565b60148201915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000614f8482614f5d565b614f8e8185614f68565b9350614f9e818560208601613796565b614fa7816137c0565b840191505092915050565b600060a082019050614fc76000830188613ed9565b614fd46020830187613ed9565b8181036040830152614fe68186613cc0565b90508181036060830152614ffa8185613cc0565b9050818103608083015261500e8184614f79565b90509695505050505050565b6000815190506150298161364b565b92915050565b60006020828403121561504557615044613517565b5b60006150538482850161501a565b91505092915050565b60008160e01c9050919050565b600060033d11156150885760046000803e61508560005161505c565b90505b90565b600060443d106151185761509d61350d565b60043d036004823e80513d602482011167ffffffffffffffff821117156150c5575050615118565b808201805167ffffffffffffffff8111156150e35750505050615118565b80602083010160043d038501811115615100575050505050615118565b61510f82602001850186613860565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000615177603483613785565b91506151828261511b565b604082019050919050565b600060208201905081810360008301526151a68161516a565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615209602883613785565b9150615214826151ad565b604082019050919050565b60006020820190508181036000830152615238816151fc565b9050919050565b600060a0820190506152546000830188613ed9565b6152616020830187613ed9565b61526e60408301866135f5565b61527b60608301856135f5565b818103608083015261528d8184614f79565b90509695505050505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006152f5602983613785565b915061530082615299565b604082019050919050565b60006020820190508181036000830152615324816152e8565b905091905056fea2646970667358221220f17c4e480534da31019ef7762a6a3c8487471e89cf0cbc08c4669106adbce6f264736f6c63430008110033697066733a2f2f516d516b6e53653161775a714b554a665466486f326177486f395546586b756d433465674852626a743736744b662f3e82b7d669c35b1793116c650619d6ad9d8ed8bafb2ec0d1d614fe4f333ad9d5538d0c15fdbd4471a38ba784f90b5a13c7d7ba84e4ad3ba96f0b8f984f13cafb000000000000000000000000000000000000000000000000000000006373d3a0

Deployed Bytecode

0x6080604052600436106101ed5760003560e01c80638da5cb5b1161010d578063c588a0bd116100a0578063f23a6e611161006f578063f23a6e61146106cc578063f242432a14610709578063f2fde38b14610732578063f6d825991461075b578063fc20db5014610777576101ed565b8063c588a0bd14610631578063d9fd67a614610648578063e985e9c514610673578063efd0cbf9146106b0576101ed565b8063ab864ad9116100dc578063ab864ad914610563578063acd52e8d1461058c578063bd85b039146105c9578063c002d23d14610606576101ed565b80638da5cb5b146104a85780639b642de1146104d3578063a04d9496146104fc578063a22cb4651461053a576101ed565b80633ccfd60b1161018557806367243482116101545780636724348214610416578063715018a61461043f578063774e51e1146104565780638a0dac4a1461047f576101ed565b80633ccfd60b1461037e5780634e1273f4146103955780634f4cddbc146103d2578063564d1bc4146103e9576101ed565b80631df9e9d8116101c15780631df9e9d8146102d65780632eb2c2d61461030157806332cb6b0c1461032a57806334b7d7e414610355576101ed565b8062fdd58e146101f257806301ffc9a71461022f57806302b22f911461026c5780630e89341c14610299575b600080fd5b3480156101fe57600080fd5b50610219600480360381019061021491906135b5565b6107a0565b6040516102269190613604565b60405180910390f35b34801561023b57600080fd5b5061025660048036038101906102519190613677565b610869565b60405161026391906136bf565b60405180910390f35b34801561027857600080fd5b5061028161088b565b60405161029093929190613716565b60405180910390f35b3480156102a557600080fd5b506102c060048036038101906102bb919061374d565b6108cb565b6040516102cd919061380a565b60405180910390f35b3480156102e257600080fd5b506102eb610906565b6040516102f89190613604565b60405180910390f35b34801561030d57600080fd5b5061032860048036038101906103239190613a29565b61090b565b005b34801561033657600080fd5b5061033f6109ac565b60405161034c9190613604565b60405180910390f35b34801561036157600080fd5b5061037c60048036038101906103779190613af8565b6109b2565b005b34801561038a57600080fd5b50610393610adb565b005b3480156103a157600080fd5b506103bc60048036038101906103b79190613be8565b610b89565b6040516103c99190613d1e565b60405180910390f35b3480156103de57600080fd5b506103e7610ca2565b005b3480156103f557600080fd5b506103fe610cb5565b60405161040d93929190613716565b60405180910390f35b34801561042257600080fd5b5061043d60048036038101906104389190613df1565b610cf5565b005b34801561044b57600080fd5b50610454610e1f565b005b34801561046257600080fd5b5061047d60048036038101906104789190613eac565b610e33565b005b34801561048b57600080fd5b506104a660048036038101906104a19190613af8565b611009565b005b3480156104b457600080fd5b506104bd611180565b6040516104ca9190613ee8565b60405180910390f35b3480156104df57600080fd5b506104fa60048036038101906104f59190613fa4565b6111aa565b005b34801561050857600080fd5b50610523600480360381019061051e9190613af8565b6111be565b604051610531929190613ffc565b60405180910390f35b34801561054657600080fd5b50610561600480360381019061055c9190614051565b611204565b005b34801561056f57600080fd5b5061058a600480360381019061058591906140bd565b6112e1565b005b34801561059857600080fd5b506105b360048036038101906105ae9190613af8565b611301565b6040516105c09190613ee8565b60405180910390f35b3480156105d557600080fd5b506105f060048036038101906105eb919061374d565b611369565b6040516105fd9190613604565b60405180910390f35b34801561061257600080fd5b5061061b611381565b6040516106289190613604565b60405180910390f35b34801561063d57600080fd5b5061064661138d565b005b34801561065457600080fd5b5061065d6116aa565b60405161066a91906140fd565b60405180910390f35b34801561067f57600080fd5b5061069a60048036038101906106959190614118565b6116b1565b6040516106a791906136bf565b60405180910390f35b6106ca60048036038101906106c5919061374d565b611745565b005b3480156106d857600080fd5b506106f360048036038101906106ee9190614158565b6118bc565b60405161070091906141fe565b60405180910390f35b34801561071557600080fd5b50610730600480360381019061072b9190614158565b6118d1565b005b34801561073e57600080fd5b5061075960048036038101906107549190613af8565b611972565b005b6107756004803603810190610770919061426f565b6119f5565b005b34801561078357600080fd5b5061079e60048036038101906107999190613eac565b611d25565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610810576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080790614341565b60405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061087482611f1c565b80610884575061088382611f86565b5b9050919050565b600b8060000154908060010160009054906101000a900467ffffffffffffffff16908060010160089054906101000a900467ffffffffffffffff16905083565b60606108d682612068565b6108df836120fc565b6040516020016108f092919061439d565b6040516020818303038152906040529050919050565b600281565b61091361214c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061095957506109588561095361214c565b6116b1565b5b610998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098f90614433565b60405180910390fd5b6109a58585858585612154565b5050505050565b60055481565b6109bb81611301565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a3457336109f782611301565b6040517fe6364b8e000000000000000000000000000000000000000000000000000000008152600401610a2b929190614453565b60405180910390fd5b6000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690558073ffffffffffffffffffffffffffffffffffffffff167fb8107d0c6b40be480ce3172ee66ba6d64b71f6b1685a851340036e6e2e3e3c5260405160405180910390a250565b610ae3612478565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610b09906144ad565b60006040518083038185875af1925050503d8060008114610b46576040519150601f19603f3d011682016040523d82523d6000602084013e610b4b565b606091505b5050905080610b86576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b60608151835114610bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc690614534565b60405180910390fd5b6000835167ffffffffffffffff811115610bec57610beb613831565b5b604051908082528060200260200182016040528015610c1a5781602001602082028036833780820191505090505b50905060005b8451811015610c9757610c67858281518110610c3f57610c3e614554565b5b6020026020010151858381518110610c5a57610c59614554565b5b60200260200101516107a0565b828281518110610c7a57610c79614554565b5b60200260200101818152505080610c90906145b2565b9050610c20565b508091505092915050565b610caa612478565b610309600581905550565b60098060000154908060010160009054906101000a900467ffffffffffffffff16908060010160089054906101000a900467ffffffffffffffff16905083565b610cfd612478565b818190508484905014610d0f57600080fd5b60005b84849050811015610e18576000838383818110610d3257610d31614554565b5b90506020020135905061030981600660006001815260200190815260200160002054610d5e91906145fa565b1115610d96576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000600181526020019081526020016000206000828254610dba91906145fa565b92505081905550610e04868684818110610dd757610dd6614554565b5b9050602002016020810190610dec9190613af8565b600183604051806020016040528060008152506124f6565b508080610e10906145b2565b915050610d12565b5050505050565b610e27612478565b610e3160006126a7565b565b610e54333060018461ffff166040518060200160405280600081525061276d565b600081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff16610eb2919061462e565b905060028161ffff1610158015610f1d57506002600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff16105b15610f8c5742600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b81600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff16610feb919061462e565b92506101000a81548161ffff021916908361ffff1602179055505050565b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061106f5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156110a6576040517fa6c1146b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fbc3292102fa77e083913064b282926717cdfaede4d35f553d66366c0a3da755a60405160405180910390a350565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6111b2612478565b6111bb81612a0b565b50565b60086020528060005260406000206000915090508060000160009054906101000a900461ffff16908060000160029054906101000a900467ffffffffffffffff16905082565b600073ffffffffffffffffffffffffffffffffffffffff166000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415801561129c5750805b156112d3576040517fc066bae700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112dd8282612a1e565b5050565b6112e9612478565b8160096000018190555080600b600001819055505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60066020528060005260406000206000915090505481565b67027f7d0bdb92000081565b6276a70067ffffffffffffffff16600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160029054906101000a900467ffffffffffffffff1667ffffffffffffffff16426114079190614664565b101561143f576040517f723db4a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff1610156114ce576040517f86a76f7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff1661152e9190614698565b92506101000a81548161ffff021916908361ffff1602179055506002600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff161015611614576000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061167e565b42600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b61168b3060016002612a34565b6116a83360026001604051806020016040528060008152506124f6565b565b6276a70081565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b60010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff164210156117a2576040517fac4d09c700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600281600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160029054906101000a900460ff1660ff1661180291906145fa565b111561183a576040517fd900aa8a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160028282829054906101000a900460ff1661189891906146db565b92506101000a81548160ff021916908360ff1602179055506118b981612c7c565b50565b600063f23a6e6160e01b905095945050505050565b6118d961214c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061191f575061191e8561191961214c565b6116b1565b5b61195e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195590614433565b60405180910390fd5b61196b858585858561276d565b5050505050565b61197a612478565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e090614782565b60405180910390fd5b6119f2816126a7565b50565b600960010160009054906101000a900467ffffffffffffffff1667ffffffffffffffff16421080611a495750600b60010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff164210155b15611a80576040517f1892035a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600960010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16421015611bbe57600281600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff1660ff16611b0b91906145fa565b1115611b43576040517fd900aa8a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900460ff16611ba191906146db565b92506101000a81548160ff021916908360ff160217905550611ccd565b600281600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160019054906101000a900460ff1660ff16611c1e91906145fa565b1115611c56576040517fd900aa8a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160018282829054906101000a900460ff16611cb491906146db565b92506101000a81548160ff021916908360ff1602179055505b611d17838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612d6d565b611d2081612c7c565b505050565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff168161ffff161115611db7576040517f86a76f7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff16611e169190614698565b92506101000a81548161ffff021916908361ffff1602179055506002600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900461ffff1661ffff161015611ef8576000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b611f19303360018461ffff166040518060200160405280600081525061276d565b50565b60007f126f5523000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061205157507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612061575061206082612dea565b5b9050919050565b606060038054612077906147d1565b80601f01602080910402602001604051908101604052809291908181526020018280546120a3906147d1565b80156120f05780601f106120c5576101008083540402835291602001916120f0565b820191906000526020600020905b8154815290600101906020018083116120d357829003601f168201915b50505050509050919050565b606060a060405101806040526020810391506000825281835b60011561213757600184039350600a81066030018453600a8104905080612115575b50828103602084039350808452505050919050565b600033905090565b8151835114612198576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218f90614874565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121fe90614906565b60405180910390fd5b600061221161214c565b9050612221818787878787612e54565b60005b84518110156123d557600085828151811061224257612241614554565b5b60200260200101519050600085838151811061226157612260614554565b5b6020026020010151905060006001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122fa90614998565b60405180910390fd5b8181036001600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123ba91906145fa565b92505081905550505050806123ce906145b2565b9050612224565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161244c9291906149b8565b60405180910390a4612462818787878787612e5c565b612470818787878787612e64565b505050505050565b61248061214c565b73ffffffffffffffffffffffffffffffffffffffff1661249e611180565b73ffffffffffffffffffffffffffffffffffffffff16146124f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124eb90614a3b565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255c90614acd565b60405180910390fd5b600061256f61214c565b9050600061257c8561303b565b905060006125898561303b565b905061259a83600089858589612e54565b846001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125fa91906145fa565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612678929190614aed565b60405180910390a461268f83600089858589612e5c565b61269e836000898989896130b5565b50505050505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036127dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d390614906565b60405180910390fd5b60006127e661214c565b905060006127f38561303b565b905060006128008561303b565b9050612810838989858589612e54565b60006001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156128a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289f90614998565b60405180910390fd5b8581036001600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856001600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461295f91906145fa565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516129dc929190614aed565b60405180910390a46129f2848a8a86868a612e5c565b612a00848a8a8a8a8a6130b5565b505050505050505050565b8060039081612a1a9190614cc2565b5050565b612a30612a2961214c565b838361328c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9a90614e06565b60405180910390fd5b6000612aad61214c565b90506000612aba8461303b565b90506000612ac78461303b565b9050612ae783876000858560405180602001604052806000815250612e54565b60006001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7690614e98565b60405180910390fd5b8481036001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612c4d929190614aed565b60405180910390a4612c7384886000868660405180602001604052806000815250612e5c565b50505050505050565b8067027f7d0bdb920000612c909190614eb8565b3414612cc8576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60055481600660006001815260200190815260200160002054612ceb91906145fa565b1115612d23576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000600181526020019081526020016000206000828254612d4791906145fa565b92505081905550612d6a33600183604051806020016040528060008152506124f6565b50565b600033604051602001612d809190614f42565b6040516020818303038152906040528051906020012090506000612da26133f8565b9050612daf83828461343b565b612de5576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050505050565b505050505050565b612e838473ffffffffffffffffffffffffffffffffffffffff16613452565b15613033578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612ec9959493929190614fb2565b6020604051808303816000875af1925050508015612f0557506040513d601f19601f82011682018060405250810190612f02919061502f565b60015b612faa57612f11615069565b806308c379a003612f6d5750612f2561508b565b80612f305750612f6f565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f64919061380a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa19061518d565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613031576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130289061521f565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff81111561305a57613059613831565b5b6040519080825280602002602001820160405280156130885781602001602082028036833780820191505090505b50905082816000815181106130a05761309f614554565b5b60200260200101818152505080915050919050565b6130d48473ffffffffffffffffffffffffffffffffffffffff16613452565b15613284578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161311a95949392919061523f565b6020604051808303816000875af192505050801561315657506040513d601f19601f82011682018060405250810190613153919061502f565b60015b6131fb57613162615069565b806308c379a0036131be575061317661508b565b8061318157506131c0565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b5919061380a565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f29061518d565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613282576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132799061521f565b60405180910390fd5b505b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036132fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132f19061530b565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516133eb91906136bf565b60405180910390a3505050565b6000600960010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16421061342f57600b60000154613436565b6009600001545b905090565b6000826134488584613475565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008082905060005b84518110156134c0576134ab8286838151811061349e5761349d614554565b5b60200260200101516134cb565b915080806134b8906145b2565b91505061347e565b508091505092915050565b60008183106134e3576134de82846134f6565b6134ee565b6134ed83836134f6565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061354c82613521565b9050919050565b61355c81613541565b811461356757600080fd5b50565b60008135905061357981613553565b92915050565b6000819050919050565b6135928161357f565b811461359d57600080fd5b50565b6000813590506135af81613589565b92915050565b600080604083850312156135cc576135cb613517565b5b60006135da8582860161356a565b92505060206135eb858286016135a0565b9150509250929050565b6135fe8161357f565b82525050565b600060208201905061361960008301846135f5565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6136548161361f565b811461365f57600080fd5b50565b6000813590506136718161364b565b92915050565b60006020828403121561368d5761368c613517565b5b600061369b84828501613662565b91505092915050565b60008115159050919050565b6136b9816136a4565b82525050565b60006020820190506136d460008301846136b0565b92915050565b6000819050919050565b6136ed816136da565b82525050565b600067ffffffffffffffff82169050919050565b613710816136f3565b82525050565b600060608201905061372b60008301866136e4565b6137386020830185613707565b6137456040830184613707565b949350505050565b60006020828403121561376357613762613517565b5b6000613771848285016135a0565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137b4578082015181840152602081019050613799565b60008484015250505050565b6000601f19601f8301169050919050565b60006137dc8261377a565b6137e68185613785565b93506137f6818560208601613796565b6137ff816137c0565b840191505092915050565b6000602082019050818103600083015261382481846137d1565b905092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613869826137c0565b810181811067ffffffffffffffff8211171561388857613887613831565b5b80604052505050565b600061389b61350d565b90506138a78282613860565b919050565b600067ffffffffffffffff8211156138c7576138c6613831565b5b602082029050602081019050919050565b600080fd5b60006138f06138eb846138ac565b613891565b90508083825260208201905060208402830185811115613913576139126138d8565b5b835b8181101561393c578061392888826135a0565b845260208401935050602081019050613915565b5050509392505050565b600082601f83011261395b5761395a61382c565b5b813561396b8482602086016138dd565b91505092915050565b600080fd5b600067ffffffffffffffff82111561399457613993613831565b5b61399d826137c0565b9050602081019050919050565b82818337600083830152505050565b60006139cc6139c784613979565b613891565b9050828152602081018484840111156139e8576139e7613974565b5b6139f38482856139aa565b509392505050565b600082601f830112613a1057613a0f61382c565b5b8135613a208482602086016139b9565b91505092915050565b600080600080600060a08688031215613a4557613a44613517565b5b6000613a538882890161356a565b9550506020613a648882890161356a565b945050604086013567ffffffffffffffff811115613a8557613a8461351c565b5b613a9188828901613946565b935050606086013567ffffffffffffffff811115613ab257613ab161351c565b5b613abe88828901613946565b925050608086013567ffffffffffffffff811115613adf57613ade61351c565b5b613aeb888289016139fb565b9150509295509295909350565b600060208284031215613b0e57613b0d613517565b5b6000613b1c8482850161356a565b91505092915050565b600067ffffffffffffffff821115613b4057613b3f613831565b5b602082029050602081019050919050565b6000613b64613b5f84613b25565b613891565b90508083825260208201905060208402830185811115613b8757613b866138d8565b5b835b81811015613bb05780613b9c888261356a565b845260208401935050602081019050613b89565b5050509392505050565b600082601f830112613bcf57613bce61382c565b5b8135613bdf848260208601613b51565b91505092915050565b60008060408385031215613bff57613bfe613517565b5b600083013567ffffffffffffffff811115613c1d57613c1c61351c565b5b613c2985828601613bba565b925050602083013567ffffffffffffffff811115613c4a57613c4961351c565b5b613c5685828601613946565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613c958161357f565b82525050565b6000613ca78383613c8c565b60208301905092915050565b6000602082019050919050565b6000613ccb82613c60565b613cd58185613c6b565b9350613ce083613c7c565b8060005b83811015613d11578151613cf88882613c9b565b9750613d0383613cb3565b925050600181019050613ce4565b5085935050505092915050565b60006020820190508181036000830152613d388184613cc0565b905092915050565b600080fd5b60008083601f840112613d5b57613d5a61382c565b5b8235905067ffffffffffffffff811115613d7857613d77613d40565b5b602083019150836020820283011115613d9457613d936138d8565b5b9250929050565b60008083601f840112613db157613db061382c565b5b8235905067ffffffffffffffff811115613dce57613dcd613d40565b5b602083019150836020820283011115613dea57613de96138d8565b5b9250929050565b60008060008060408587031215613e0b57613e0a613517565b5b600085013567ffffffffffffffff811115613e2957613e2861351c565b5b613e3587828801613d45565b9450945050602085013567ffffffffffffffff811115613e5857613e5761351c565b5b613e6487828801613d9b565b925092505092959194509250565b600061ffff82169050919050565b613e8981613e72565b8114613e9457600080fd5b50565b600081359050613ea681613e80565b92915050565b600060208284031215613ec257613ec1613517565b5b6000613ed084828501613e97565b91505092915050565b613ee281613541565b82525050565b6000602082019050613efd6000830184613ed9565b92915050565b600067ffffffffffffffff821115613f1e57613f1d613831565b5b613f27826137c0565b9050602081019050919050565b6000613f47613f4284613f03565b613891565b905082815260208101848484011115613f6357613f62613974565b5b613f6e8482856139aa565b509392505050565b600082601f830112613f8b57613f8a61382c565b5b8135613f9b848260208601613f34565b91505092915050565b600060208284031215613fba57613fb9613517565b5b600082013567ffffffffffffffff811115613fd857613fd761351c565b5b613fe484828501613f76565b91505092915050565b613ff681613e72565b82525050565b60006040820190506140116000830185613fed565b61401e6020830184613707565b9392505050565b61402e816136a4565b811461403957600080fd5b50565b60008135905061404b81614025565b92915050565b6000806040838503121561406857614067613517565b5b60006140768582860161356a565b92505060206140878582860161403c565b9150509250929050565b61409a816136da565b81146140a557600080fd5b50565b6000813590506140b781614091565b92915050565b600080604083850312156140d4576140d3613517565b5b60006140e2858286016140a8565b92505060206140f3858286016140a8565b9150509250929050565b60006020820190506141126000830184613707565b92915050565b6000806040838503121561412f5761412e613517565b5b600061413d8582860161356a565b925050602061414e8582860161356a565b9150509250929050565b600080600080600060a0868803121561417457614173613517565b5b60006141828882890161356a565b95505060206141938882890161356a565b94505060406141a4888289016135a0565b93505060606141b5888289016135a0565b925050608086013567ffffffffffffffff8111156141d6576141d561351c565b5b6141e2888289016139fb565b9150509295509295909350565b6141f88161361f565b82525050565b600060208201905061421360008301846141ef565b92915050565b60008083601f84011261422f5761422e61382c565b5b8235905067ffffffffffffffff81111561424c5761424b613d40565b5b602083019150836020820283011115614268576142676138d8565b5b9250929050565b60008060006040848603121561428857614287613517565b5b600084013567ffffffffffffffff8111156142a6576142a561351c565b5b6142b286828701614219565b935093505060206142c5868287016135a0565b9150509250925092565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b600061432b602a83613785565b9150614336826142cf565b604082019050919050565b6000602082019050818103600083015261435a8161431e565b9050919050565b600081905092915050565b60006143778261377a565b6143818185614361565b9350614391818560208601613796565b80840191505092915050565b60006143a9828561436c565b91506143b5828461436c565b91508190509392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061441d602e83613785565b9150614428826143c1565b604082019050919050565b6000602082019050818103600083015261444c81614410565b9050919050565b60006040820190506144686000830185613ed9565b6144756020830184613ed9565b9392505050565b600081905092915050565b50565b600061449760008361447c565b91506144a282614487565b600082019050919050565b60006144b88261448a565b9150819050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061451e602983613785565b9150614529826144c2565b604082019050919050565b6000602082019050818103600083015261454d81614511565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006145bd8261357f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145ef576145ee614583565b5b600182019050919050565b60006146058261357f565b91506146108361357f565b925082820190508082111561462857614627614583565b5b92915050565b600061463982613e72565b915061464483613e72565b9250828201905061ffff81111561465e5761465d614583565b5b92915050565b600061466f8261357f565b915061467a8361357f565b925082820390508181111561469257614691614583565b5b92915050565b60006146a382613e72565b91506146ae83613e72565b9250828203905061ffff8111156146c8576146c7614583565b5b92915050565b600060ff82169050919050565b60006146e6826146ce565b91506146f1836146ce565b9250828201905060ff81111561470a57614709614583565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061476c602683613785565b915061477782614710565b604082019050919050565b6000602082019050818103600083015261479b8161475f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147e957607f821691505b6020821081036147fc576147fb6147a2565b5b50919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061485e602883613785565b915061486982614802565b604082019050919050565b6000602082019050818103600083015261488d81614851565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006148f0602583613785565b91506148fb82614894565b604082019050919050565b6000602082019050818103600083015261491f816148e3565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614982602a83613785565b915061498d82614926565b604082019050919050565b600060208201905081810360008301526149b181614975565b9050919050565b600060408201905081810360008301526149d28185613cc0565b905081810360208301526149e68184613cc0565b90509392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a25602083613785565b9150614a30826149ef565b602082019050919050565b60006020820190508181036000830152614a5481614a18565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614ab7602183613785565b9150614ac282614a5b565b604082019050919050565b60006020820190508181036000830152614ae681614aaa565b9050919050565b6000604082019050614b0260008301856135f5565b614b0f60208301846135f5565b9392505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614b787fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b3b565b614b828683614b3b565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614bbf614bba614bb58461357f565b614b9a565b61357f565b9050919050565b6000819050919050565b614bd983614ba4565b614bed614be582614bc6565b848454614b48565b825550505050565b600090565b614c02614bf5565b614c0d818484614bd0565b505050565b5b81811015614c3157614c26600082614bfa565b600181019050614c13565b5050565b601f821115614c7657614c4781614b16565b614c5084614b2b565b81016020851015614c5f578190505b614c73614c6b85614b2b565b830182614c12565b50505b505050565b600082821c905092915050565b6000614c9960001984600802614c7b565b1980831691505092915050565b6000614cb28383614c88565b9150826002028217905092915050565b614ccb8261377a565b67ffffffffffffffff811115614ce457614ce3613831565b5b614cee82546147d1565b614cf9828285614c35565b600060209050601f831160018114614d2c5760008415614d1a578287015190505b614d248582614ca6565b865550614d8c565b601f198416614d3a86614b16565b60005b82811015614d6257848901518255600182019150602085019450602081019050614d3d565b86831015614d7f5784890151614d7b601f891682614c88565b8355505b6001600288020188555050505b505050505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614df0602383613785565b9150614dfb82614d94565b604082019050919050565b60006020820190508181036000830152614e1f81614de3565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000614e82602483613785565b9150614e8d82614e26565b604082019050919050565b60006020820190508181036000830152614eb181614e75565b9050919050565b6000614ec38261357f565b9150614ece8361357f565b9250828202614edc8161357f565b91508282048414831517614ef357614ef2614583565b5b5092915050565b60008160601b9050919050565b6000614f1282614efa565b9050919050565b6000614f2482614f07565b9050919050565b614f3c614f3782613541565b614f19565b82525050565b6000614f4e8284614f2b565b60148201915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000614f8482614f5d565b614f8e8185614f68565b9350614f9e818560208601613796565b614fa7816137c0565b840191505092915050565b600060a082019050614fc76000830188613ed9565b614fd46020830187613ed9565b8181036040830152614fe68186613cc0565b90508181036060830152614ffa8185613cc0565b9050818103608083015261500e8184614f79565b90509695505050505050565b6000815190506150298161364b565b92915050565b60006020828403121561504557615044613517565b5b60006150538482850161501a565b91505092915050565b60008160e01c9050919050565b600060033d11156150885760046000803e61508560005161505c565b90505b90565b600060443d106151185761509d61350d565b60043d036004823e80513d602482011167ffffffffffffffff821117156150c5575050615118565b808201805167ffffffffffffffff8111156150e35750505050615118565b80602083010160043d038501811115615100575050505050615118565b61510f82602001850186613860565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000615177603483613785565b91506151828261511b565b604082019050919050565b600060208201905081810360008301526151a68161516a565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615209602883613785565b9150615214826151ad565b604082019050919050565b60006020820190508181036000830152615238816151fc565b9050919050565b600060a0820190506152546000830188613ed9565b6152616020830187613ed9565b61526e60408301866135f5565b61527b60608301856135f5565b818103608083015261528d8184614f79565b90509695505050505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006152f5602983613785565b915061530082615299565b604082019050919050565b60006020820190508181036000830152615324816152e8565b905091905056fea2646970667358221220f17c4e480534da31019ef7762a6a3c8487471e89cf0cbc08c4669106adbce6f264736f6c63430008110033

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

3e82b7d669c35b1793116c650619d6ad9d8ed8bafb2ec0d1d614fe4f333ad9d5538d0c15fdbd4471a38ba784f90b5a13c7d7ba84e4ad3ba96f0b8f984f13cafb000000000000000000000000000000000000000000000000000000006373d3a0

-----Decoded View---------------
Arg [0] : _phaseOneWhitelistRoot (bytes32): 0x3e82b7d669c35b1793116c650619d6ad9d8ed8bafb2ec0d1d614fe4f333ad9d5
Arg [1] : _phaseTwoWhitelistRoot (bytes32): 0x538d0c15fdbd4471a38ba784f90b5a13c7d7ba84e4ad3ba96f0b8f984f13cafb
Arg [2] : startTime (uint64): 1668535200

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 3e82b7d669c35b1793116c650619d6ad9d8ed8bafb2ec0d1d614fe4f333ad9d5
Arg [1] : 538d0c15fdbd4471a38ba784f90b5a13c7d7ba84e4ad3ba96f0b8f984f13cafb
Arg [2] : 000000000000000000000000000000000000000000000000000000006373d3a0


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.