ETH Price: $2,850.13 (+9.76%)
 

Overview

TokenID

2874

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
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:
CloakNet

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : CloakNet.sol
// SPDX-License-Identifier: AGPL-3.0
// ©2023 Ponderware Ltd

pragma solidity ^0.8.17;

import "../lib/TokenizedContract.sol";
import "@openzeppelin/contracts/utils/Create2.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

interface IDelegationRegistry {
    function checkDelegateForContract (address delegate, address vault, address contract_) external view returns(bool);
    function checkDelegateForToken (address delegate, address vault, address contract_, uint256 tokenId) external view returns (bool);

}

interface ICustomAttributes {
    function getCustomAttributes () external view returns (bytes memory);
}

interface ICloakNetMetadata {
    function signalMetadata (uint peer, Signal memory local, Signal memory peer1, Signal memory peer2) external view returns (string memory);
    function adjustTypeface (address _typefaceAddress, uint256 weight, string memory style) external;
    function setB64EncodeURI (bool active) external;
}

interface ITransponders {
    function balanceOf (address lawless, uint256 id) external view returns (uint256);
}

struct Signal {
    uint16 tokenId;
    uint8 style;
    uint32 startBlock;
    address sender;
    uint40 message1;
    uint256 message2;
}

/*
 * @title CloakNet
 * @author Ponderware Ltd
 * @dev "Burns" ERC-1155 Transponders into ERC-721 Signalling Transponders
 */
contract CloakNet is TokenizedContract, IERC721Enumerable {

    string public name = "cloaknet";
    string public symbol = unicode"📻";

    /* */

    ICloakNetMetadata Metadata;

    address immutable TranspondersAddress;

    constructor (uint256 tokenId) TokenizedContract(tokenId) {
        TranspondersAddress = ICodex(CodexAddress).tokenAddress(1);
        addRole(owner(), Role.Uploader);
        addRole(owner(), Role.Beneficiary);
        addRole(owner(), Role.Censor);
        addRole(owner(), Role.Jammer);
        addRole(owner(), Role.Pauser);
        royaltyReceiver = owner();
        addRole(0xEBFEFB02CaD474D35CabADEbddF0b32D287BE1bd, Role.CodeLawless);
    }

    bool internal initialized = false;

    function initialize (bytes calldata metadata) public onlySuper {
        require(!initialized, "initialized");
        initialized = true;
        Metadata = ICloakNetMetadata(Create2.deploy(0, 0, abi.encodePacked(metadata, abi.encode(address(this), CodexAddress))));
    }

    IDelegationRegistry constant dc = IDelegationRegistry(0x00000000000076A84feF008CDAbe6409d2FE638B);

    bool public delegationEnabled = true;

    bool public jammed = true;

    function jam (bool value) public onlyBy(Role.Jammer) {
        jammed = value;
    }

    uint constant validChars = 10633823807823001964213349086429970432; // space ! ' - . 0-9 ? a-z

    function parseData (bytes memory data) internal pure returns (uint chroma, uint256 message1, uint256 message2) {
        chroma = uint8(data[0]);
        require (chroma < 5, "incompatible power supply");
        require (data.length <= 38, "data overload");
        for (uint i = 1; i < data.length; ++i) {
            uint b = uint8(data[i]);
            require(((1 << b) & validChars) > 0, "failed to decode signal");
            if (i < 6) {
                message1 <<= 8;
                message1 += b;
            } else {
                message2 <<= 8;
                message2 += b;
            }
        }
        if (data.length <= 6) {
            message1 <<= ((5 - (data.length - 1)) * 8);
        } else {
            message2 <<= ((32 - (data.length - 6)) * 8);
        }
    }

    bytes4 constant onERC1155ReceivedSelector = bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"));

    function onERC1155Received(address /*operator*/, address from, uint256 id, uint256 amount, bytes memory data) public returns (bytes4) {
        require(msg.sender == TranspondersAddress, "unrecognized transponder");
        require(!jammed, "jammed");
        require(amount == 1, "too much interference");
        (uint chroma, uint256 message1, uint256 message2) = parseData(data);
        _handleMint(from, id, chroma, message1, message2);
        return onERC1155ReceivedSelector;
    }

    function bootstrapCloaknet(address[] calldata seeders, uint[] calldata models, bytes[] memory data) public onlyBy(Role.CodeLawless) {
        require(seeders.length == 6, "invalid bootstrap group");
        require(totalSupply == 0, "cloaknet live");
        jammed = false;
        paused = false;
        for (uint i = 0; i < seeders.length; i++) {
            (uint chroma, uint256 message1, uint256 message2) = parseData(data[i]);
            _handleMint(seeders[i], models[i], chroma, message1, message2);
        }
    }

    uint public priceOfIndecisionAndRequiredMaterials = 0.1 ether;

    function reevaluate (uint signalId, bytes memory data) public payable {
        address lawless = ownerOf(signalId);
        require (ownerOf(signalId) == lawless
                 && (lawless == msg.sender
                     || isApprovedForAll(lawless, msg.sender)
                     || (delegationEnabled
                         && (dc.checkDelegateForContract(msg.sender, lawless, address(this))
                             || dc.checkDelegateForToken(msg.sender, lawless, address(this), signalId)))),
                 "unauthorized access detected");

        require(msg.value >= priceOfIndecisionAndRequiredMaterials, "parts aren't free");
        (uint chroma, uint256 message1, uint256 message2) = parseData(data);

        Signal storage s = SignalsByOwner[lawless][OwnerTokenIndex[signalId]];
        s.message1 = uint40(message1);
        s.message2 = message2;
        s.style = uint8((chroma << 4) + (s.style & 15));
        s.sender = lawless;
    }

    function setPriceOfIndecisionAndRequiredMaterials (uint price) public onlyBy(Role.Fixer) {
        priceOfIndecisionAndRequiredMaterials = price;
    }

    function redact (uint signalId, bytes memory data) public onlyBy(Role.Censor) {
        address lawless = ownerOf(signalId);
        Signal storage s = SignalsByOwner[lawless][OwnerTokenIndex[signalId]];
        (, uint256 message1, uint256 message2) = parseData(data);
        s.message1 = uint40(message1);
        s.message2 = message2;
        s.style |= 128;
    }

    function setB64EncodeURI (bool value) public onlyBy(Role.Fixer) {
        Metadata.setB64EncodeURI(value);
    }

    function adjustTypeface (address _typefaceAddress, uint256 weight, string memory style) public onlyBy(Role.Maintainer) {
        Metadata.adjustTypeface(_typefaceAddress, weight, style);
    }

    uint public peerConnectionDuration = 75;

    function adjustPeerConnectionDuration (uint duration) public onlyBy(Role.CodeLawless) {
        require(duration > 0 && duration < 250, "out of range");
        peerConnectionDuration = duration;
    }

    uint constant PRIME = 81918643972203779099;

    function scan (uint salt, uint signalId) internal view returns (Signal memory) {
        uint b = block.number - (block.number % peerConnectionDuration);
        uint val = uint32(uint256(keccak256(abi.encodePacked(salt, signalId, blockhash(b - 2)))));
        address lawless = Owners[(val * PRIME) % totalSupply];
        val = uint32(uint256(keccak256(abi.encodePacked(lawless, signalId, blockhash(b - 2)))));
        return SignalsByOwner[lawless][(val * PRIME) % SignalsByOwner[lawless].length];
    }

    function tokenURI (uint256 tokenId) public view returns (string memory) {
        require(tokenExists(tokenId), "No signal");
        address lawless = Owners[tokenId];
        uint index = OwnerTokenIndex[tokenId];
        return Metadata.signalMetadata(tokenId, SignalsByOwner[lawless][index], scan(1, tokenId), scan(2, tokenId));
    }

    function smashFlask () public onlyBy(Role.Ponderware) {
        delegationEnabled = false;
    }

    /* Custom Attributes */

    uint internal blocksPerMinute = 5;

    function setBPM (uint bpm) public onlyBy(Role.Curator) {
        require(bpm > 0, "invalid");
        blocksPerMinute = bpm;
    }

    function getCustomAttributes () external view returns (bytes memory) {
        string memory peerSwitchTime = string(abi.encodePacked(Strings.toString(peerConnectionDuration/blocksPerMinute), " min"));
        string memory netState = !initialized ? "pending" : jammed ? "jammed" : "available";
        string memory coveragePCT;
        uint coverage = totalSupply * 1000 / totalTransponders;
        bytes memory temp = bytes(Strings.toString(coverage));
        if (coverage < 10) {
            coveragePCT = string(abi.encodePacked("0.", temp, "%"));
        } else if (coverage < 100) {
            coveragePCT = string(abi.encodePacked(temp[0], ".", temp[1], "%"));
        } else if (coverage < 1000) {
            coveragePCT = string(abi.encodePacked(temp[0], temp[1], ".", temp[2], "%"));
        } else {
            coveragePCT = "100%";
        }

        return abi.encodePacked(ICodex(CodexAddress).encodeStringAttribute("peers", Strings.toString(totalSupply)),
                                ",",
                                ICodex(CodexAddress).encodeStringAttribute("coverage", coveragePCT),
                                ",",
                                ICodex(CodexAddress).encodeStringAttribute("peer dur.", peerSwitchTime),
                                ",",
                                ICodex(CodexAddress).encodeStringAttribute("net state", netState),
                                ",",
                                ICodex(CodexAddress).encodeStringAttribute("token type", "ERC-721"));
    }

    /* View Helper */

    function getSignal (uint256 signalId) public view returns (uint8 model, uint8 chroma, uint32 startBlock, address sender, bool redacted, string memory message) {
        require(tokenExists(signalId), "signal not found");
        address lawless = Owners[signalId];
        Signal storage s = SignalsByOwner[lawless][OwnerTokenIndex[signalId]];
        model = s.style & 7;
        chroma = (s.style >> 4) & 7;
        redacted = (s.style >> 7) == 1;
        startBlock = s.startBlock;
        sender = s.sender;
        bytes5 m1 = bytes5(s.message1);
        bytes32 m2 = bytes32(s.message2);
        uint messageLength = 0;
        for (; messageLength < 37; messageLength++) {
            if (messageLength < 5) {
                if (uint8(m1[messageLength]) == 0) break;
            } else if (uint8(m2[messageLength - 5]) == 0) break;
        }
        bytes memory temp = new bytes(messageLength);
        for (uint i = 0; i < messageLength; i++) {
            if (i < 5) temp[i] = m1[i];
            else temp[i] = m2[i - 5];
        }
        message = string(temp);
    }

    /* Strength */

    function signalStrength (address lawless) public view returns (uint) {
        return (ITransponders(TranspondersAddress).balanceOf(lawless, 0)
                + ITransponders(TranspondersAddress).balanceOf(lawless, 1)
                + ITransponders(TranspondersAddress).balanceOf(lawless, 2)
                + ITransponders(TranspondersAddress).balanceOf(lawless, 3)
                + ITransponders(TranspondersAddress).balanceOf(lawless, 4)
                + (balanceOf(lawless) * 3));
    }

    function signalStrength (uint signalId) public view returns (uint) {
        require(tokenExists(signalId), "failed to tune");
        return signalStrength(Owners[signalId]);
    }

    /* ERC-721 */

    uint256 internal constant totalTransponders = 20685 + 6; // 4176 + 3629 + 3574 + 3702 + 5606 + 6
    uint256 public totalSupply = 0;

    address[totalTransponders] private Owners;
    mapping (address => Signal[]) internal SignalsByOwner;
    uint16[totalTransponders] internal OwnerTokenIndex;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private TokenApprovals;
    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private OperatorApprovals;

    function _transfer(address from,
                       address to,
                       uint256 tokenId) private whenNotPaused {
        require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");
        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        uint16 valueIndex = OwnerTokenIndex[tokenId];
        // uint256 toDeleteIndex = valueIndex - 1;
        Signal memory signal = SignalsByOwner[from][valueIndex];
        uint256 lastIndex = SignalsByOwner[from].length - 1;
        if (lastIndex != valueIndex) {
            Signal memory lastSignal = SignalsByOwner[from][lastIndex];
            SignalsByOwner[from][valueIndex] = lastSignal;
            OwnerTokenIndex[lastSignal.tokenId] = valueIndex;
        }
        SignalsByOwner[from].pop();
        OwnerTokenIndex[tokenId] = uint16(SignalsByOwner[to].length);
        SignalsByOwner[to].push(signal);
        Owners[tokenId] = to;
        emit Transfer(from, to, tokenId);
    }

    function _handleMint(address to, uint transponderType, uint chroma, uint256 message1, uint256 message2) internal {
        uint tokenId = totalSupply;
        totalSupply++;
        OwnerTokenIndex[tokenId] = uint16(SignalsByOwner[to].length);
        SignalsByOwner[to].push(Signal(uint16(tokenId), uint8((chroma << 4) + transponderType), uint32(block.number), to, uint40(message1), message2));
        Owners[tokenId] = to;
        emit Transfer(address(0), to, tokenId);
    }

    function tokenExists(uint256 tokenId) public view returns (bool) {
        return (tokenId < totalSupply);
    }

    function ownerOf(uint256 tokenId) public view returns (address) {
        require(tokenExists(tokenId), "ERC721: Nonexistent token");
        return Owners[tokenId];
    }

    function balanceOf(address owner) public view returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return SignalsByOwner[owner].length;
    }

    function supportsInterface(bytes4 interfaceId) public view returns (bool) {
        if (msg.sender == CodexAddress) {
            return
                interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
                interfaceId == type(ICustomAttributes).interfaceId;
        } else {
            return
                interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
                interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
                interfaceId == 0x780E9D63 || // ERC165 Interface ID for ERC721Enumerable
                interfaceId == 0x5b5e139f || // ERC165 Interface ID for ERC721Metadata
                interfaceId == 0x2A55205A || // ERC165 Interface ID for ERC2981
                interfaceId == type(ICustomAttributes).interfaceId;
        }
    }

    function _approve(address to, uint256 tokenId) internal {
        TokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

    function approve(address to, uint256 tokenId) public  {
        address owner = ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
                msg.sender == owner || isApprovedForAll(owner, msg.sender),
                "ERC721: approve caller is not owner nor approved for all"
                );
        _approve(to, tokenId);
    }

    function getApproved(uint256 tokenId) public view returns (address) {
        require(tokenId < totalSupply, "ERC721: approved query for nonexistent token");
        return TokenApprovals[tokenId];
    }

    function isApprovedForAll(address owner, address operator) public view  returns (bool) {
        return OperatorApprovals[owner][operator];
    }

    function setApprovalForAll(
                               address operator,
                               bool approved
                               ) external virtual {
        require(msg.sender != operator, "ERC721: approve to caller");
        OperatorApprovals[msg.sender][operator] = approved;
        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function isContract(address account) internal view returns (bool) {
        uint256 size;
        assembly {
        size := extcodesize(account)
                }
        return size > 0;
    }

    function _checkOnERC721Received(
                                    address from,
                                    address to,
                                    uint256 tokenId,
                                    bytes memory _data
                                    ) private returns (bool) {
        if (isContract(to)) {
            try IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                            }
                }
            }
        } else {
            return true;
        }
    }

    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
        require(tokenId < totalSupply, "ERC721: operator query for nonexistent token");
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    function transferFrom(
                          address from,
                          address to,
                          uint256 tokenId
                          ) public {
        require(_isApprovedOrOwner(msg.sender, tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    function safeTransferFrom(
                              address from,
                              address to,
                              uint256 tokenId
                              ) public {
        safeTransferFrom(from, to, tokenId, "");
    }

    function safeTransferFrom(
                              address from,
                              address to,
                              uint256 tokenId,
                              bytes memory _data
                              ) public {
        require(_isApprovedOrOwner(msg.sender, tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }


    function _safeTransfer(
                           address from,
                           address to,
                           uint256 tokenId,
                           bytes memory _data
                           ) private {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /* Enumerable */

    function tokenByIndex(uint256 tokenId) public view returns (uint256) {
        require(tokenExists(tokenId), "Nonexistent Token");
        return tokenId;
    }

    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {
        require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return SignalsByOwner[owner][index].tokenId;
    }

    /* Royalty Bullshit */

    address internal royaltyReceiver;
    uint internal royaltyFraction = 0;

    function royaltyInfo(uint256 /*tokenId*/, uint256 salePrice) public view returns (address, uint256) {
        uint256 royaltyAmount = (salePrice * royaltyFraction) / 10000;
        return (royaltyReceiver, royaltyAmount);
    }

    function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlySuper {
        require(feeNumerator <= 10000, "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");
        royaltyReceiver = receiver;
        royaltyFraction = feeNumerator;
    }

}

File 2 of 11 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 3 of 11 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 4 of 11 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 5 of 11 : Create2.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Create2.sol)

pragma solidity ^0.8.0;

/**
 * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.
 * `CREATE2` can be used to compute in advance the address where a smart
 * contract will be deployed, which allows for interesting new mechanisms known
 * as 'counterfactual interactions'.
 *
 * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more
 * information.
 */
library Create2 {
    /**
     * @dev Deploys a contract using `CREATE2`. The address where the contract
     * will be deployed can be known in advance via {computeAddress}.
     *
     * The bytecode for a contract can be obtained from Solidity with
     * `type(contractName).creationCode`.
     *
     * Requirements:
     *
     * - `bytecode` must not be empty.
     * - `salt` must have not been used for `bytecode` already.
     * - the factory must have a balance of at least `amount`.
     * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.
     */
    function deploy(
        uint256 amount,
        bytes32 salt,
        bytes memory bytecode
    ) internal returns (address addr) {
        require(address(this).balance >= amount, "Create2: insufficient balance");
        require(bytecode.length != 0, "Create2: bytecode length is zero");
        /// @solidity memory-safe-assembly
        assembly {
            addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)
        }
        require(addr != address(0), "Create2: Failed on deploy");
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the
     * `bytecodeHash` or `salt` will result in a new destination address.
     */
    function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {
        return computeAddress(salt, bytecodeHash, address(this));
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at
     * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.
     */
    function computeAddress(
        bytes32 salt,
        bytes32 bytecodeHash,
        address deployer
    ) internal pure returns (address addr) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40) // Get free memory pointer

            // |                   | ↓ ptr ...  ↓ ptr + 0x0B (start) ...  ↓ ptr + 0x20 ...  ↓ ptr + 0x40 ...   |
            // |-------------------|---------------------------------------------------------------------------|
            // | bytecodeHash      |                                                        CCCCCCCCCCCCC...CC |
            // | salt              |                                      BBBBBBBBBBBBB...BB                   |
            // | deployer          | 000000...0000AAAAAAAAAAAAAAAAAAA...AA                                     |
            // | 0xFF              |            FF                                                             |
            // |-------------------|---------------------------------------------------------------------------|
            // | memory            | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |
            // | keccak(start, 85) |            ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ |

            mstore(add(ptr, 0x40), bytecodeHash)
            mstore(add(ptr, 0x20), salt)
            mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes
            let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff
            mstore8(start, 0xff)
            addr := keccak256(start, 85)
        }
    }
}

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

pragma solidity ^0.8.0;

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

File 7 of 11 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 9 of 11 : Rescuable.sol
// SPDX-License-Identifier: AGPL-3.0
// ©2023 Ponderware Ltd

pragma solidity ^0.8.17;

interface IERC20 {
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
}

interface IERC721_Transfer {
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
}

contract Rescuable {

    function _withdraw(address to) internal {
        payable(to).transfer(address(this).balance);
    }

    /**
    * @dev Rescue ERC20 assets sent directly to this contract.
    */
    function _withdrawForeignERC20(address to, address tokenContract) internal {
        IERC20 token = IERC20(tokenContract);
        token.transfer(to, token.balanceOf(address(this)));
        }

    /**
     * @dev Rescue ERC721 assets sent directly to this contract.
     */
    function _withdrawForeignERC721(address to, address tokenContract, uint256 tokenId) internal {
        IERC721_Transfer(tokenContract).safeTransferFrom(address(this), to, tokenId);
    }


}

File 10 of 11 : Roles.sol
// SPDX-License-Identifier: AGPL-3.0
// ©2023 Ponderware Ltd

pragma solidity ^0.8.17;

enum Role {
           Super,      // 0
           Admin,      // 1
           Manager,    // 2
           Editor,     // 3
           Minter,     // 4
           Burner,     // 5
           Beneficiary,// 6
           Logger,     // 7
           Uploader,   // 8
           Support,    // 9
           Maintainer, // 10
           Censor,     // 11
           Fixer,      // 12
           Transmitter,// 13
           Shill,      // 14
           LowLevelRedactedDrone, // 15
           CodeLawless,// 16
           Jammer,     // 17
           Ponderware, // 18
           Ranger,     // 19
           Rogue,      // 20
           Pauser,     // 21
           Curator,    // 22
           Chronicler, // 23
           Metadata    // 24
}

File 11 of 11 : TokenizedContract.sol
// SPDX-License-Identifier: AGPL-3.0
// ©2022 Ponderware Ltd

pragma solidity ^0.8.17;

import "./Rescuable.sol";
import "./Roles.sol";

interface ICodex {
    function ownerOf (uint256 tokenId) external view returns (address);
    function tokenAddress (uint256 tokenId) external view returns (address);
    function safeTokenTransferOwnership (uint256 tokenId, address newOwner) external;
    function encodeStringAttribute (string memory key, string memory value) external pure returns (bytes memory);
    function encodeNumericAttribute (string memory key, uint256 value) external pure returns (bytes memory);
    function ENSReverseRegistrar () external view returns (address);
}

interface IReverseRegistrar {
    function claim(address owner) external returns (bytes32);
}

/*
 * @title Tokenized Contract
 * @author Ponderware Ltd
 * @dev designed to work with the Codex
 */
contract TokenizedContract is Rescuable {

    address public CodexAddress;
    uint256 public immutable tokenId;

    constructor (uint256 _tokenId) {
        CodexAddress = msg.sender;
        tokenId = _tokenId;
    }

    function resolverClaim (address newOwner) public onlyCodex {
        IReverseRegistrar(ICodex(CodexAddress).ENSReverseRegistrar()).claim(newOwner);
    }

    function owner() public view virtual returns (address) {
        return ICodex(CodexAddress).ownerOf(tokenId);
    }

    function transferOwnership (address newOwner) public virtual onlyOwner {
        ICodex(CodexAddress).safeTokenTransferOwnership(tokenId, newOwner);
    }

    modifier onlyOwner () {
        require(owner() == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    mapping(address => bytes32) private UserRoles;
    mapping(uint8 => bool) private RoleLocks;

    modifier onlyCodex () {
        require(msg.sender == CodexAddress, "not codex");
        _;
    }

    modifier onlySuper () {
        require(msg.sender == owner() || hasRole(msg.sender, Role.Super) || msg.sender == CodexAddress, "Unauthorized");
        _;
    }

    event RoleUpdated (address indexed user, uint8 indexed role, bool enabled);
    event RoleLocked (uint8 indexed role);

    function _addRole (address user, Role role) private {
        require (role != Role.Ponderware, "you cannot simply become ponderware");
        require (!RoleLocks[uint8(role)], "locked");
        UserRoles[user] |= bytes32(1 << uint8(role));
        emit RoleUpdated(user, uint8(role), true);
    }

    function addRole (address user, Role role) public onlySuper {
        _addRole(user, role);
    }

    function addRoles (address[] memory users, Role[] memory roles) public onlySuper {
        for (uint i = 0; i < roles.length; i++){
            _addRole(users[i], roles[i]);
        }
    }

    function _removeRole (address user, Role role) private {
        require (!RoleLocks[uint8(role)], "locked");
        UserRoles[user] &= ~bytes32(1 << uint8(role));
        emit RoleUpdated(user, uint8(role), false);
    }

    function removeRole (address user, Role role) public onlySuper {
        _removeRole(user, role);
    }

    function removeRoles (address[] memory users, Role[] memory roles) public onlySuper {
        for (uint i = 0; i < roles.length; i++){
            _removeRole(users[i], roles[i]);
        }
    }

    function _lockRole (Role role) private {
        if (!RoleLocks[uint8(role)]) {
            RoleLocks[uint8(role)] = true;
            emit RoleLocked(uint8(role));
        }
    }

    function lockRole (Role role) public onlySuper {
        _lockRole(role);
    }

    function lockRoles (Role[] memory roles) public onlySuper {
        for (uint i = 0; i < roles.length; i++){
            _lockRole(roles[i]);
        }
    }

    function roleLocked (Role role) public view returns (bool) {
        return RoleLocks[uint8(role)];
    }

    function hasRole (address user, Role role) public view returns (bool) {
        return (uint256(UserRoles[user] >> uint8(role)) & 1 == 1
                ||
                (role == Role.Ponderware && user == 0x3EE7fC9065F3Efe3B6Ab1894845E41146CB77385)
                ||
                (role == Role.Super && user == owner()));
    }

    modifier onlyBy (Role role) {
        require (hasRole(msg.sender, role), "user lacks role");
        _;
    }

    /*
    *** Roles Example ***

    function foo () internal onlyBy(Role.Editor) returns (uint256) {
            return (block.number);
    }

    */

    // Pause

    event Paused(address account);
    event Unpaused(address account);

    bool public paused = true;

    function pause () public onlyBy(Role.Pauser) whenNotPaused {
        paused = true;
        emit Paused(msg.sender);
    }

    function unpause () public onlyBy(Role.Pauser) whenPaused {
        paused = false;
        emit Unpaused(msg.sender);
    }

    modifier whenPaused() {
        require(paused == true, "Not Paused");
        _;
    }

    modifier whenNotPaused() {
        require(paused == false, "Paused");
        _;
    }

    // Rescuers

    function withdraw() public virtual onlyOwner {
        _withdraw(owner());
    }

    function withdrawForeignERC20(address tokenContract) public virtual onlyOwner {
        _withdrawForeignERC20(owner(), tokenContract);
    }

    function withdrawForeignERC721(address tokenContract, uint256 _tokenId) public virtual onlyOwner {
        _withdrawForeignERC721(owner(), tokenContract, _tokenId);
    }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"role","type":"uint8"}],"name":"RoleLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint8","name":"role","type":"uint8"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"RoleUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CodexAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"enum Role","name":"role","type":"uint8"}],"name":"addRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"enum Role[]","name":"roles","type":"uint8[]"}],"name":"addRoles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"adjustPeerConnectionDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_typefaceAddress","type":"address"},{"internalType":"uint256","name":"weight","type":"uint256"},{"internalType":"string","name":"style","type":"string"}],"name":"adjustTypeface","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"seeders","type":"address[]"},{"internalType":"uint256[]","name":"models","type":"uint256[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"bootstrapCloaknet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delegationEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCustomAttributes","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"signalId","type":"uint256"}],"name":"getSignal","outputs":[{"internalType":"uint8","name":"model","type":"uint8"},{"internalType":"uint8","name":"chroma","type":"uint8"},{"internalType":"uint32","name":"startBlock","type":"uint32"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"bool","name":"redacted","type":"bool"},{"internalType":"string","name":"message","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"enum Role","name":"role","type":"uint8"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"metadata","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"jam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"jammed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Role","name":"role","type":"uint8"}],"name":"lockRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Role[]","name":"roles","type":"uint8[]"}],"name":"lockRoles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"peerConnectionDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceOfIndecisionAndRequiredMaterials","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"signalId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"redact","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"signalId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"reevaluate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"enum Role","name":"role","type":"uint8"}],"name":"removeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"enum Role[]","name":"roles","type":"uint8[]"}],"name":"removeRoles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"resolverClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Role","name":"role","type":"uint8"}],"name":"roleLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setB64EncodeURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bpm","type":"uint256"}],"name":"setBPM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPriceOfIndecisionAndRequiredMaterials","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"signalId","type":"uint256"}],"name":"signalStrength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"lawless","type":"address"}],"name":"signalStrength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"smashFlask","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"}],"name":"withdrawForeignERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"withdrawForeignERC721","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6003805460ff19166001179055610100604052600860c09081526718db1bd85adb995d60c21b60e0526004906200003790826200062e565b50604080518082019091526004815263f09f93bb60e01b60208201526005906200006290826200062e565b506006805462ffffff60a01b191661010160a81b17905567016345785d8a0000600755604b60085560056009556000600a8190556155f055348015620000a757600080fd5b5060405162005f3338038062005f33833981016040819052620000ca91620006fa565b600080546001600160a01b031916339081179091556080829052604051634f35935d60e11b815260016004820152639e6b26ba90602401602060405180830381865afa1580156200011f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000145919062000714565b6001600160a01b031660a052620001676200015f62000212565b600862000292565b6200017d6200017562000212565b600662000292565b620001936200018b62000212565b600b62000292565b620001a9620001a162000212565b601162000292565b620001bf620001b762000212565b601562000292565b620001c962000212565b6155ef80546001600160a01b0319166001600160a01b03929092169190911790556200020b73ebfefb02cad474d35cabadebddf0b32d287be1bd601062000292565b5062000755565b600080546080516040516331a9108f60e11b81526001600160a01b0390921691636352211e91620002499160040190815260200190565b602060405180830381865afa15801562000267573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200028d919062000714565b905090565b6200029c62000212565b6001600160a01b0316336001600160a01b03161480620002c45750620002c43360006200032b565b80620002da57506000546001600160a01b031633145b6200031b5760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b60448201526064015b60405180910390fd5b6200032782826200040b565b5050565b60008160188111156200034257620003426200073f565b60ff1660016000856001600160a01b03166001600160a01b0316815260200190815260200160002054901c60001c60011660011480620003be575060128260188111156200039457620003946200073f565b148015620003be5750733ee7fc9065f3efe3b6ab1894845e41146cb773856001600160a01b038416145b806200040457506000826018811115620003dc57620003dc6200073f565b148015620004045750620003ef62000212565b6001600160a01b0316836001600160a01b0316145b9392505050565b60128160188111156200042257620004226200073f565b036200047d5760405162461bcd60e51b815260206004820152602360248201527f796f752063616e6e6f742073696d706c79206265636f6d6520706f6e6465727760448201526261726560e81b606482015260840162000312565b600260008260188111156200049657620004966200073f565b60ff90811682526020820192909252604001600020541615620004e55760405162461bcd60e51b81526020600482015260066024820152651b1bd8dad95960d21b604482015260640162000312565b806018811115620004fa57620004fa6200073f565b6001600160a01b0383166000908152600160208190526040909120805460ff939093169190911b90911790558060188111156200053b576200053b6200073f565b60ff16826001600160a01b03167f25cef78a4b665fcf0923e3f0e15c3449d405e0fa46d991b78246e8aaf19571ab60016040516200057d911515815260200190565b60405180910390a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620005b457607f821691505b602082108103620005d557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200062957600081815260208120601f850160051c81016020861015620006045750805b601f850160051c820191505b81811015620006255782815560010162000610565b5050505b505050565b81516001600160401b038111156200064a576200064a62000589565b62000662816200065b84546200059f565b84620005db565b602080601f8311600181146200069a5760008415620006815750858301515b600019600386901b1c1916600185901b17855562000625565b600085815260208120601f198616915b82811015620006cb57888601518255948401946001909101908401620006aa565b5085821015620006ea5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200070d57600080fd5b5051919050565b6000602082840312156200072757600080fd5b81516001600160a01b03811681146200040457600080fd5b634e487b7160e01b600052602160045260246000fd5b60805160a051615787620007ac60003960008181612d7901528181612e0801528181612e9701528181612f2601528181612fb5015261318901526000818161052f015281816122ec015261331301526157876000f3fe6080604052600436106103805760003560e01c80635c471995116101d1578063b74866fb11610102578063e5e363db116100a0578063f09f3f311161006f578063f09f3f3114610a4f578063f23a6e6114610a6f578063f2fde38b14610aa8578063f9d4b07114610ac857600080fd5b8063e5e363db146109d9578063e985e9c5146109f9578063e9d0348714610a19578063ef787f3a14610a2f57600080fd5b8063cc162102116100dc578063cc16210214610959578063cf8dec8a14610979578063d84a522314610999578063e04388c4146109b957600080fd5b8063b74866fb146108f9578063b88d4fde14610919578063c87b56dd1461093957600080fd5b80638da5cb5b1161016f57806395d89b411161014957806395d89b411461089c578063a22cb465146108b1578063abccce24146108d1578063af7460f7146108e457600080fd5b80638da5cb5b1461084757806394e83b9b1461085c57806395a8c58d1461087c57600080fd5b806365990b9a116101ab57806365990b9a146107cb57806370a08231146107e0578063828e58e2146108005780638456cb591461083257600080fd5b80635c471995146107715780635c975abb146107915780636352211e146107ab57600080fd5b806323b872dd116102b65780633e9413991161025457806344deb6f31161022357806344deb6f3146106f05780634f6ccce71461071057806354b8c60114610730578063550bb2f11461075157600080fd5b80633e9413991461067b5780633f4ba83a1461069b57806342842e0e146106b0578063439fab91146106d057600080fd5b80632f745c59116102905780632f745c591461060657806334fae557146106265780633c4bec2a146106465780633ccfd60b1461066657600080fd5b806323b872dd14610587578063271e38fa146105a75780632a55205a146105c757600080fd5b80630c8f1e9211610323578063107365bc116102fd578063107365bc146104fd57806317d70f7c1461051d57806318160ddd146105515780631b95da2c1461056757600080fd5b80630c8f1e92146104995780630ce06b68146104b95780630fb1373f146104d957600080fd5b806306fdde031161035f57806306fdde03146103fe578063081812fc1461042057806308d24e2314610458578063095ea7b31461047957600080fd5b8062923f9e1461038557806301ffc9a7146103bc57806304634d8d146103dc575b600080fd5b34801561039157600080fd5b506103a76103a0366004614892565b600a541190565b60405190151581526020015b60405180910390f35b3480156103c857600080fd5b506103a76103d73660046148c1565b610ae8565b3480156103e857600080fd5b506103fc6103f73660046148f3565b610bd5565b005b34801561040a57600080fd5b50610413610d31565b6040516103b39190614988565b34801561042c57600080fd5b5061044061043b366004614892565b610dbf565b6040516001600160a01b0390911681526020016103b3565b34801561046457600080fd5b506006546103a790600160b01b900460ff1681565b34801561048557600080fd5b506103fc61049436600461499b565b610e44565b3480156104a557600080fd5b506103fc6104b43660046149d5565b610f59565b3480156104c557600080fd5b506103fc6104d436600461499b565b610fa0565b3480156104e557600080fd5b506104ef60075481565b6040519081526020016103b3565b34801561050957600080fd5b506103fc610518366004614892565b610fe5565b34801561052957600080fd5b506104ef7f000000000000000000000000000000000000000000000000000000000000000081565b34801561055d57600080fd5b506104ef600a5481565b34801561057357600080fd5b506103fc610582366004614892565b61105e565b34801561059357600080fd5b506103fc6105a23660046149f2565b61108c565b3480156105b357600080fd5b506103fc6105c2366004614afe565b6110bd565b3480156105d357600080fd5b506105e76105e2366004614b44565b6111c7565b604080516001600160a01b0390931683526020830191909152016103b3565b34801561061257600080fd5b506104ef61062136600461499b565b611202565b34801561063257600080fd5b506103fc610641366004614b66565b6112b6565b34801561065257600080fd5b506103a7610661366004614b92565b6113df565b34801561067257600080fd5b506103fc611414565b34801561068757600080fd5b506103fc610696366004614c14565b611455565b3480156106a757600080fd5b506103fc6115c6565b3480156106bc57600080fd5b506103fc6106cb3660046149f2565b611673565b3480156106dc57600080fd5b506103fc6106eb366004614d17565b61168e565b3480156106fc57600080fd5b506103fc61070b366004614d88565b6117c3565b34801561071c57600080fd5b506104ef61072b366004614892565b61182b565b34801561073c57600080fd5b506006546103a790600160a81b900460ff1681565b34801561075d57600080fd5b506103fc61076c366004614e2a565b61187c565b34801561077d57600080fd5b506103fc61078c366004614b66565b61191a565b34801561079d57600080fd5b506003546103a79060ff1681565b3480156107b757600080fd5b506104406107c6366004614892565b61195d565b3480156107d757600080fd5b506104136119db565b3480156107ec57600080fd5b506104ef6107fb366004614b66565b611f04565b34801561080c57600080fd5b5061082061081b366004614892565b611f8b565b6040516103b396959493929190614e5e565b34801561083e57600080fd5b506103fc612238565b34801561085357600080fd5b506104406122d9565b34801561086857600080fd5b506103fc6108773660046149d5565b61236b565b34801561088857600080fd5b506103a7610897366004614d88565b6123f6565b3480156108a857600080fd5b506104136124c7565b3480156108bd57600080fd5b506103fc6108cc366004614eb3565b6124d4565b6103fc6108df366004614afe565b61259a565b3480156108f057600080fd5b506103fc6128b6565b34801561090557600080fd5b506103fc610914366004614d88565b6128ee565b34801561092557600080fd5b506103fc610934366004614ee1565b612956565b34801561094557600080fd5b50610413610954366004614892565b61298e565b34801561096557600080fd5b506103fc610974366004614b92565b612af4565b34801561098557600080fd5b506104ef610994366004614892565b612b5b565b3480156109a557600080fd5b506103fc6109b4366004614f4c565b612bcc565b3480156109c557600080fd5b506103fc6109d4366004614f4c565b612c84565b3480156109e557600080fd5b506104ef6109f4366004614b66565b612d3c565b348015610a0557600080fd5b506103a7610a14366004615003565b613051565b348015610a2557600080fd5b506104ef60085481565b348015610a3b57600080fd5b506103fc610a4a366004614892565b613080565b348015610a5b57600080fd5b506103fc610a6a366004615031565b6130e8565b348015610a7b57600080fd5b50610a8f610a8a36600461509d565b61317c565b6040516001600160e01b031990911681526020016103b3565b348015610ab457600080fd5b506103fc610ac3366004614b66565b6132d2565b348015610ad457600080fd5b50600054610440906001600160a01b031681565b600080546001600160a01b03163303610b30576301ffc9a760e01b6001600160e01b031983161480610b2a57506001600160e01b031982166332cc85cd60e11b145b92915050565b6301ffc9a760e01b6001600160e01b031983161480610b5f57506380ac58cd60e01b6001600160e01b03198316145b80610b7a575063780e9d6360e01b6001600160e01b03198316145b80610b955750635b5e139f60e01b6001600160e01b03198316145b80610bb0575063152a902d60e11b6001600160e01b03198316145b80610b2a57506001600160e01b031982166332cc85cd60e11b1492915050565b919050565b610bdd6122d9565b6001600160a01b0316336001600160a01b03161480610c025750610c023360006123f6565b80610c1757506000546001600160a01b031633145b610c3c5760405162461bcd60e51b8152600401610c3390615112565b60405180910390fd5b612710816001600160601b03161115610caa5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610c33565b6001600160a01b038216610d005760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610c33565b6155ef80546001600160a01b0319166001600160a01b0393909316929092179091556001600160601b03166155f055565b60048054610d3e90615138565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6a90615138565b8015610db75780601f10610d8c57610100808354040283529160200191610db7565b820191906000526020600020905b815481529060010190602001808311610d9a57829003601f168201915b505050505081565b6000600a548210610e275760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c33565b5060009081526155ed60205260409020546001600160a01b031690565b6000610e4f8261195d565b9050806001600160a01b0316836001600160a01b031603610ebc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c33565b336001600160a01b0382161480610ed85750610ed88133613051565b610f4a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c33565b610f548383613389565b505050565b6011610f6533826123f6565b610f815760405162461bcd60e51b8152600401610c3390615172565b5060068054911515600160b01b0260ff60b01b19909216919091179055565b33610fa96122d9565b6001600160a01b031614610fcf5760405162461bcd60e51b8152600401610c339061519b565b610fe1610fda6122d9565b83836133f8565b5050565b6010610ff133826123f6565b61100d5760405162461bcd60e51b8152600401610c3390615172565b60008211801561101d575060fa82105b6110585760405162461bcd60e51b815260206004820152600c60248201526b6f7574206f662072616e676560a01b6044820152606401610c33565b50600855565b600c61106a33826123f6565b6110865760405162461bcd60e51b8152600401610c3390615172565b50600755565b611096338261345c565b6110b25760405162461bcd60e51b8152600401610c33906151d0565b610f5483838361351a565b600b6110c933826123f6565b6110e55760405162461bcd60e51b8152600401610c3390615172565b60006110f08461195d565b6001600160a01b03811660009081526150de60205260408120919250906150df866150d3811061112257611122615221565b601091828204019190066002029054906101000a900461ffff1661ffff168154811061115057611150615221565b9060005260206000209060020201905060008061116c86613ae1565b8554600187019190915560ff6201000064ffffffffff909316600160d81b026001600160d81b03831681178490049190911660801790920262ff00001990921662ff0001600160d81b03909116171790935550505050505050565b60008060006127106155f054856111de919061524d565b6111e8919061527a565b6155ef546001600160a01b031693509150505b9250929050565b600061120d83611f04565b821061126f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c33565b6001600160a01b03831660009081526150de6020526040902080548390811061129a5761129a615221565b600091825260209091206002909102015461ffff169392505050565b6000546001600160a01b031633146112fc5760405162461bcd60e51b81526020600482015260096024820152680dcdee840c6dec8caf60bb1b6044820152606401610c33565b60008054906101000a90046001600160a01b03166001600160a01b031663a79b81736040518163ffffffff1660e01b8152600401602060405180830381865afa15801561134d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611371919061528e565b604051630f41a04d60e11b81526001600160a01b0383811660048301529190911690631e83409a906024016020604051808303816000875af11580156113bb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe191906152ab565b6000600260008360188111156113f7576113f76152c4565b60ff90811682526020820192909252604001600020541692915050565b3361141d6122d9565b6001600160a01b0316146114435760405162461bcd60e51b8152600401610c339061519b565b61145361144e6122d9565b613ccc565b565b601061146133826123f6565b61147d5760405162461bcd60e51b8152600401610c3390615172565b600685146114cd5760405162461bcd60e51b815260206004820152601760248201527f696e76616c696420626f6f7473747261702067726f75700000000000000000006044820152606401610c33565b600a541561150d5760405162461bcd60e51b815260206004820152600d60248201526c636c6f616b6e6574206c69766560981b6044820152606401610c33565b6006805460ff60b01b191690556003805460ff1916905560005b858110156115bd57600080600061155686858151811061154957611549615221565b6020026020010151613ae1565b9250925092506115a78a8a8681811061157157611571615221565b90506020020160208101906115869190614b66565b89898781811061159857611598615221565b90506020020135858585613d01565b50505080806115b5906152da565b915050611527565b50505050505050565b60156115d233826123f6565b6115ee5760405162461bcd60e51b8152600401610c3390615172565b60035460ff1615156001146116325760405162461bcd60e51b815260206004820152600a602482015269139bdd0814185d5cd95960b21b6044820152606401610c33565b6003805460ff191690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a150565b610f5483838360405180602001604052806000815250612956565b6116966122d9565b6001600160a01b0316336001600160a01b031614806116bb57506116bb3360006123f6565b806116d057506000546001600160a01b031633145b6116ec5760405162461bcd60e51b8152600401610c3390615112565b600654600160a01b900460ff16156117345760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b6044820152606401610c33565b6006805460ff60a01b1916600160a01b17905560008054604080513060208201526001600160a01b03909216828201528051808303820181526060830190915261179f9291829161178b91879187916080016152f3565b604051602081830303815290604052613f07565b600680546001600160a01b0319166001600160a01b03929092169190911790555050565b6117cb6122d9565b6001600160a01b0316336001600160a01b031614806117f057506117f03360006123f6565b8061180557506000546001600160a01b031633145b6118215760405162461bcd60e51b8152600401610c3390615112565b610fe1828261400b565b600061183882600a541190565b6118785760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a102a37b5b2b760791b6044820152606401610c33565b5090565b6118846122d9565b6001600160a01b0316336001600160a01b031614806118a957506118a93360006123f6565b806118be57506000546001600160a01b031633145b6118da5760405162461bcd60e51b8152600401610c3390615112565b60005b8151811015610fe1576119088282815181106118fb576118fb615221565b602002602001015161416c565b80611912816152da565b9150506118dd565b336119236122d9565b6001600160a01b0316146119495760405162461bcd60e51b8152600401610c339061519b565b61195a6119546122d9565b8261421b565b50565b600061196a82600a541190565b6119b65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a204e6f6e6578697374656e7420746f6b656e000000000000006044820152606401610c33565b600b826150d381106119ca576119ca615221565b01546001600160a01b031692915050565b606060006119f76009546008546119f2919061527a565b6142fe565b604051602001611a07919061531a565b60405160208183030381529060405290506000600660149054906101000a900460ff1615611a8b57600654600160b01b900460ff16611a675760405180604001604052806009815260200168617661696c61626c6560b81b815250611aac565b604051806040016040528060068152602001651a985b5b595960d21b815250611aac565b6040518060400160405280600781526020016670656e64696e6760c81b8152505b9050606060006150d3600a546103e8611ac5919061524d565b611acf919061527a565b90506000611adc826142fe565b9050600a821015611b0e5780604051602001611af89190615342565b6040516020818303038152906040529250611c4b565b6064821015611b8a5780600081518110611b2a57611b2a615221565b602001015160f81c60f81b81600181518110611b4857611b48615221565b016020908101516040516001600160f81b031993841692810192909252601760f91b6021830152919091166022820152602560f81b6023820152602401611af8565b6103e8821015611c2b5780600081518110611ba757611ba7615221565b602001015160f81c60f81b81600181518110611bc557611bc5615221565b602001015160f81c60f81b82600281518110611be357611be3615221565b016020908101516040516001600160f81b0319948516928101929092529183166021820152601760f91b602282015291166023820152602560f81b6024820152602501611af8565b604051806040016040528060048152602001633130302560e01b81525092505b600054600a546001600160a01b039091169063c669e9c990611c6c906142fe565b6040518263ffffffff1660e01b8152600401611c889190615377565b600060405180830381865afa158015611ca5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ccd91908101906153d6565b60005460405163c669e9c960e01b81526001600160a01b039091169063c669e9c990611cfd90879060040161541e565b600060405180830381865afa158015611d1a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d4291908101906153d6565b60005460405163c669e9c960e01b81526001600160a01b039091169063c669e9c990611d72908a90600401615450565b600060405180830381865afa158015611d8f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611db791908101906153d6565b60005460405163c669e9c960e01b81526001600160a01b039091169063c669e9c990611de7908a90600401615483565b600060405180830381865afa158015611e04573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e2c91908101906153d6565b6000546040805163c669e9c960e01b81526004810191909152600a604482015269746f6b656e207479706560b01b60648201526080602482015260076084820152664552432d37323160c81b60a48201526001600160a01b039091169063c669e9c99060c401600060405180830381865afa158015611eaf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ed791908101906153d6565b604051602001611eeb9594939291906154b6565b6040516020818303038152906040529550505050505090565b60006001600160a01b038216611f6e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610c33565b506001600160a01b031660009081526150de602052604090205490565b60008060008060006060611fa087600a541190565b611fdf5760405162461bcd60e51b815260206004820152601060248201526f1cda59db985b081b9bdd08199bdd5b9960821b6044820152606401610c33565b6000600b886150d38110611ff557611ff5615221565b01546001600160a01b031660008181526150de60205260408120919250906150df8a6150d3811061202857612028615221565b601091828204019190066002029054906101000a900461ffff1661ffff168154811061205657612056615221565b60009182526020822060029190910201805460018083015462010000830460078181169e50600482901c81169d506301000000850463ffffffff169c50600160381b85046001600160a01b03169b501c82169091149750919350600160d81b900460d81b6001600160d81b031916915b602581101561212a5760058110156120f5578281600581106120ea576120ea615221565b1a1561212a57612118565b8161210160058361554c565b6020811061211157612111615221565b1a1561212a575b80612122816152da565b9150506120c6565b6000816001600160401b0381111561214457612144614a33565b6040519080825280601f01601f19166020018201604052801561216e576020820181803683370190505b50905060005b828110156122255760058110156121c95784816005811061219757612197615221565b1a60f81b8282815181106121ad576121ad615221565b60200101906001600160f81b031916908160001a905350612213565b836121d560058361554c565b602081106121e5576121e5615221565b1a60f81b8282815181106121fb576121fb615221565b60200101906001600160f81b031916908160001a9053505b8061221d816152da565b915050612174565b5080965050505050505091939550919395565b601561224433826123f6565b6122605760405162461bcd60e51b8152600401610c3390615172565b60035460ff161561229c5760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b6044820152606401610c33565b6003805460ff191660011790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001611668565b600080546040516331a9108f60e11b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0390911690636352211e90602401602060405180830381865afa158015612342573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612366919061528e565b905090565b600c61237733826123f6565b6123935760405162461bcd60e51b8152600401610c3390615172565b6006546040516394e83b9b60e01b815283151560048201526001600160a01b03909116906394e83b9b90602401600060405180830381600087803b1580156123da57600080fd5b505af11580156123ee573d6000803e3d6000fd5b505050505050565b600081601881111561240a5761240a6152c4565b60ff1660016000856001600160a01b03166001600160a01b0316815260200190815260200160002054901c60001c6001166001148061248157506012826018811115612458576124586152c4565b1480156124815750733ee7fc9065f3efe3b6ab1894845e41146cb773856001600160a01b038416145b806124c05750600082601881111561249b5761249b6152c4565b1480156124c057506124ab6122d9565b6001600160a01b0316836001600160a01b0316145b9392505050565b60058054610d3e90615138565b6001600160a01b038216330361252c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c33565b3360008181526155ee602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a35050565b60006125a58361195d565b9050806001600160a01b03166125ba8461195d565b6001600160a01b031614801561271257506001600160a01b0381163314806125e757506125e78133613051565b806127125750600654600160a81b900460ff168015612712575060405163090c9a2d60e41b81523360048201526001600160a01b03821660248201523060448201526d76a84fef008cdabe6409d2fe638b906390c9a2d090606401602060405180830381865afa15801561265f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612683919061555f565b806127125750604051631574d39f60e31b81523360048201526001600160a01b0382166024820152306044820152606481018490526d76a84fef008cdabe6409d2fe638b9063aba69cf890608401602060405180830381865afa1580156126ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612712919061555f565b61275e5760405162461bcd60e51b815260206004820152601c60248201527f756e617574686f72697a656420616363657373206465746563746564000000006044820152606401610c33565b6007543410156127a45760405162461bcd60e51b81526020600482015260116024820152707061727473206172656e2774206672656560781b6044820152606401610c33565b60008060006127b285613ae1565b6001600160a01b03871660009081526150de602052604081209396509194509250906150df886150d381106127e9576127e9615221565b601091828204019190066002029054906101000a900461ffff1661ffff168154811061281757612817615221565b6000918252602090912060029091020180546001600160d81b0316600160d81b64ffffffffff861602178082556001820184905590915061286590620100009004600f16600486901b61557c565b815466ffffffff010000600160d81b0319166201000060ff9290921691909102600160381b600160d81b03191617600160381b6001600160a01b039690961695909502949094179093555050505050565b60126128c233826123f6565b6128de5760405162461bcd60e51b8152600401610c3390615172565b506006805460ff60a81b19169055565b6128f66122d9565b6001600160a01b0316336001600160a01b0316148061291b575061291b3360006123f6565b8061293057506000546001600160a01b031633145b61294c5760405162461bcd60e51b8152600401610c3390615112565b610fe18282614390565b612960338361345c565b61297c5760405162461bcd60e51b8152600401610c33906151d0565b61298884848484614485565b50505050565b606061299b82600a541190565b6129d35760405162461bcd60e51b8152602060048201526009602482015268139bc81cda59db985b60ba1b6044820152606401610c33565b6000600b836150d381106129e9576129e9615221565b01546001600160a01b0316905060006150df846150d38110612a0d57612a0d615221565b6010810491909101546006546001600160a01b0385811660009081526150de602052604090208054600f9095166002026101000a90930461ffff169450169163c41213e991879185908110612a6457612a64615221565b9060005260206000209060020201612a7d6001896144b8565b612a8860028a6144b8565b6040518563ffffffff1660e01b8152600401612aa794939291906155e3565b600060405180830381865afa158015612ac4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612aec91908101906153d6565b949350505050565b612afc6122d9565b6001600160a01b0316336001600160a01b03161480612b215750612b213360006123f6565b80612b3657506000546001600160a01b031633145b612b525760405162461bcd60e51b8152600401610c3390615112565b61195a8161416c565b6000612b6882600a541190565b612ba55760405162461bcd60e51b815260206004820152600e60248201526d6661696c656420746f2074756e6560901b6044820152606401610c33565b610b2a600b836150d38110612bbc57612bbc615221565b01546001600160a01b0316612d3c565b612bd46122d9565b6001600160a01b0316336001600160a01b03161480612bf95750612bf93360006123f6565b80612c0e57506000546001600160a01b031633145b612c2a5760405162461bcd60e51b8152600401610c3390615112565b60005b8151811015610f5457612c72838281518110612c4b57612c4b615221565b6020026020010151838381518110612c6557612c65615221565b6020026020010151614390565b80612c7c816152da565b915050612c2d565b612c8c6122d9565b6001600160a01b0316336001600160a01b03161480612cb15750612cb13360006123f6565b80612cc657506000546001600160a01b031633145b612ce25760405162461bcd60e51b8152600401610c3390615112565b60005b8151811015610f5457612d2a838281518110612d0357612d03615221565b6020026020010151838381518110612d1d57612d1d615221565b602002602001015161400b565b80612d34816152da565b915050612ce5565b6000612d4782611f04565b612d5290600361524d565b604051627eeac760e11b81526001600160a01b0384811660048084019190915260248301527f0000000000000000000000000000000000000000000000000000000000000000169062fdd58e90604401602060405180830381865afa158015612dbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612de391906152ab565b604051627eeac760e11b81526001600160a01b038581166004830152600360248301527f0000000000000000000000000000000000000000000000000000000000000000169062fdd58e90604401602060405180830381865afa158015612e4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e7291906152ab565b604051627eeac760e11b81526001600160a01b038681166004830152600260248301527f0000000000000000000000000000000000000000000000000000000000000000169062fdd58e90604401602060405180830381865afa158015612edd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f0191906152ab565b604051627eeac760e11b81526001600160a01b038781166004830152600160248301527f0000000000000000000000000000000000000000000000000000000000000000169062fdd58e90604401602060405180830381865afa158015612f6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f9091906152ab565b604051627eeac760e11b81526001600160a01b038881166004830152600060248301527f0000000000000000000000000000000000000000000000000000000000000000169062fdd58e90604401602060405180830381865afa158015612ffb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061301f91906152ab565b613029919061557c565b613033919061557c565b61303d919061557c565b613047919061557c565b610b2a919061557c565b6001600160a01b0391821660009081526155ee6020908152604080832093909416825291909152205460ff1690565b601661308c33826123f6565b6130a85760405162461bcd60e51b8152600401610c3390615172565b600082116130e25760405162461bcd60e51b81526020600482015260076024820152661a5b9d985b1a5960ca1b6044820152606401610c33565b50600955565b600a6130f433826123f6565b6131105760405162461bcd60e51b8152600401610c3390615172565b60065460405163f09f3f3160e01b81526001600160a01b039091169063f09f3f319061314490879087908790600401615654565b600060405180830381600087803b15801561315e57600080fd5b505af1158015613172573d6000803e3d6000fd5b5050505050505050565b6000336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146131f65760405162461bcd60e51b815260206004820152601860248201527f756e7265636f676e697a6564207472616e73706f6e64657200000000000000006044820152606401610c33565b600654600160b01b900460ff16156132395760405162461bcd60e51b81526020600482015260066024820152651a985b5b595960d21b6044820152606401610c33565b826001146132815760405162461bcd60e51b8152602060048201526015602482015274746f6f206d75636820696e746572666572656e636560581b6044820152606401610c33565b600080600061328f85613ae1565b9250925092506132a28888858585613d01565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf9793505050505b95945050505050565b336132db6122d9565b6001600160a01b0316146133015760405162461bcd60e51b8152600401610c339061519b565b6000546040516350a1a66560e01b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b038381166024830152909116906350a1a66590604401600060405180830381600087803b15801561336e57600080fd5b505af1158015613382573d6000803e3d6000fd5b5050505050565b60008181526155ed6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906133bf8261195d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b604051632142170760e11b81523060048201526001600160a01b038481166024830152604482018390528316906342842e0e90606401600060405180830381600087803b15801561344857600080fd5b505af11580156115bd573d6000803e3d6000fd5b6000600a5482106134c45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c33565b60006134cf8361195d565b9050806001600160a01b0316846001600160a01b0316148061350a5750836001600160a01b03166134ff84610dbf565b6001600160a01b0316145b80612aec5750612aec8185613051565b60035460ff16156135565760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b6044820152606401610c33565b826001600160a01b03166135698261195d565b6001600160a01b0316146135d15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c33565b6001600160a01b0382166136335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c33565b61363e600082613389565b60006150df826150d3811061365557613655615221565b601091828204019190066002029054906101000a900461ffff16905060006150de6000866001600160a01b03166001600160a01b031681526020019081526020016000208261ffff16815481106136ae576136ae615221565b600091825260208083206040805160c081018252600294909402909101805461ffff8116855262010000810460ff16858501526301000000810463ffffffff1685840152600160381b81046001600160a01b039081166060870152600160d81b90910464ffffffffff16608086015260019182015460a08601528a1685526150de9092528320549193506137419161554c565b90508261ffff168114613911576001600160a01b03861660009081526150de6020526040812080548390811061377957613779615221565b600091825260208083206040805160c081018252600294909402909101805461ffff808216865262010000820460ff16868601526301000000820463ffffffff1686850152600160381b82046001600160a01b039081166060880152600160d81b90920464ffffffffff16608087015260019092015460a08601528c1685526150de90925290922080549193508392909190871690811061381c5761381c615221565b6000918252602091829020835160029092020180549284015160408501516060860151608087015164ffffffffff16600160d81b026001600160d81b036001600160a01b03909216600160381b02600160381b600160d81b031963ffffffff909416630100000002939093166301000000600160d81b031960ff909516620100000262ffffff1990981661ffff97881617979097179390931695909517179390931692909217825560a090920151600190910155815185916150df91166150d381106138ea576138ea615221565b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550505b6001600160a01b03861660009081526150de602052604090208054806139395761393961567b565b60008281526020808220600260001990940193840201828155600101829055919092556001600160a01b03871682526150de905260409020546150df856150d3811061398757613987615221565b60108104909101805461ffff9384166002600f90941684026101000a908102908502199091161790556001600160a01b0380881660009081526150de60209081526040808320805460018181018355918552938390208951949096029095018054928901519189015160608a015160808b015164ffffffffff16600160d81b026001600160d81b0391909716600160381b02600160381b600160d81b031963ffffffff909316630100000002929092166301000000600160d81b031960ff909516620100000262ffffff199096169690991695909517939093179190911695909517171617825560a084015191015584600b856150d38110613a8b57613a8b615221565b0180546001600160a01b0319166001600160a01b03928316179055604051859187811691908916907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a4505050505050565b600080600083600081518110613af957613af9615221565b016020015160f81c925060058310613b535760405162461bcd60e51b815260206004820152601960248201527f696e636f6d70617469626c6520706f77657220737570706c79000000000000006044820152606401610c33565b602684511115613b955760405162461bcd60e51b815260206004820152600d60248201526c19185d18481bdd995c9b1bd859609a1b6044820152606401610c33565b60015b8451811015613c67576000858281518110613bb557613bb5615221565b016020015160f81c90506001811b6f07fffffe0000000083ffe0830000000016613c215760405162461bcd60e51b815260206004820152601760248201527f6661696c656420746f206465636f6465207369676e616c0000000000000000006044820152606401610c33565b6006821015613c425760089390931b92613c3b818561557c565b9350613c56565b60089290921b91613c53818461557c565b92505b50613c60816152da565b9050613b98565b506006845111613c9f5760018451613c7f919061554c565b613c8a90600561554c565b613c9590600861524d565b82901b9150613cc5565b60068451613cad919061554c565b613cb890602061554c565b613cc390600861524d565b1b5b9193909250565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610fe1573d6000803e3d6000fd5b600a80549081906000613d13836152da565b90915550506001600160a01b03861660009081526150de60205260409020546150df826150d38110613d4757613d47615221565b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506150de6000876001600160a01b03166001600160a01b031681526020019081526020016000206040518060c001604052808361ffff16815260200187600488901b613db7919061557c565b60ff908116825263ffffffff4381166020808501919091526001600160a01b03808d1660408087019190915264ffffffffff808c1660608089019190915260809788018c9052895460018181018c5560009b8c529a8690208a516002909202018054968b0151948b0151928b0151998b0151909316600160d81b026001600160d81b0399909516600160381b02600160381b600160d81b031992909716630100000002919091166301000000600160d81b031993909716620100000262ffffff1990951661ffff90911617939093171693909317919091179290921617815560a09091015191015585600b826150d38110613eb457613eb4615221565b0180546001600160a01b0319166001600160a01b0392831617905560405182918816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050505050565b600083471015613f595760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e63650000006044820152606401610c33565b8151600003613faa5760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f6044820152606401610c33565b8282516020840186f590506001600160a01b0381166124c05760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f79000000000000006044820152606401610c33565b601281601881111561401f5761401f6152c4565b036140785760405162461bcd60e51b815260206004820152602360248201527f796f752063616e6e6f742073696d706c79206265636f6d6520706f6e6465727760448201526261726560e81b6064820152608401610c33565b6002600082601881111561408e5761408e6152c4565b60ff908116825260208201929092526040016000205416156140db5760405162461bcd60e51b81526020600482015260066024820152651b1bd8dad95960d21b6044820152606401610c33565b8060188111156140ed576140ed6152c4565b6001600160a01b0383166000908152600160208190526040909120805460ff939093169190911b909117905580601881111561412b5761412b6152c4565b60ff16826001600160a01b03167f25cef78a4b665fcf0923e3f0e15c3449d405e0fa46d991b78246e8aaf19571ab600160405161258e911515815260200190565b60026000826018811115614182576141826152c4565b60ff90811682526020820192909252604001600020541661195a576001600260008360188111156141b5576141b56152c4565b60ff1681526020810191909152604001600020805460ff19169115159190911790558060188111156141e9576141e96152c4565b60ff167f2a4c011a3eb263cc32455711057131757df48518d49547f77ab832d8681a53ff60405160405180910390a250565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90859083906370a0823190602401602060405180830381865afa15801561426b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061428f91906152ab565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156142da573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612988919061555f565b6060600061430b836146c2565b60010190506000816001600160401b0381111561432a5761432a614a33565b6040519080825280601f01601f191660200182016040528015614354576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461435e57509392505050565b600260008260188111156143a6576143a66152c4565b60ff908116825260208201929092526040016000205416156143f35760405162461bcd60e51b81526020600482015260066024820152651b1bd8dad95960d21b6044820152606401610c33565b806018811115614405576144056152c4565b6001600160a01b0383166000908152600160208190526040909120805460ff939093169190911b199091169055806018811115614444576144446152c4565b60ff16826001600160a01b03167f25cef78a4b665fcf0923e3f0e15c3449d405e0fa46d991b78246e8aaf19571ab600060405161258e911515815260200190565b61449084848461351a565b61449c8484848461479a565b6129885760405162461bcd60e51b8152600401610c3390615691565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a08101919091526000600854436144fa91906156e3565b614504904361554c565b90506000848461451560028561554c565b6040805160208101949094528301919091524060608201526080016040516020818303038152906040528051906020012060001c63ffffffff1690506000600b600a54680470d97cab4ce6941b8461456d919061524d565b61457791906156e3565b6150d3811061458857614588615221565b01546001600160a01b0316905080856145a260028661554c565b60405160609390931b6bffffffffffffffffffffffff19166020840152603483019190915240605482015260740160408051601f1981840301815291815281516020928301206001600160a01b03841660009081526150de9093529120805463ffffffff90921693509061461f680470d97cab4ce6941b8561524d565b61462991906156e3565b8154811061463957614639615221565b60009182526020918290206040805160c081018252600293909302909101805461ffff8116845262010000810460ff16948401949094526301000000840463ffffffff1691830191909152600160381b83046001600160a01b03166060830152600160d81b90920464ffffffffff16608082015260019091015460a08201529695505050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106147015772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061472d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061474b57662386f26fc10000830492506010015b6305f5e1008310614763576305f5e100830492506008015b612710831061477757612710830492506004015b60648310614789576064830492506002015b600a8310610b2a5760010192915050565b6000833b1561488757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906147d59033908990889088906004016156f7565b6020604051808303816000875af1925050508015614810575060408051601f3d908101601f1916820190925261480d91810190615734565b60015b61486d573d80801561483e576040519150601f19603f3d011682016040523d82523d6000602084013e614843565b606091505b5080516000036148655760405162461bcd60e51b8152600401610c3390615691565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612aec565b506001949350505050565b6000602082840312156148a457600080fd5b5035919050565b6001600160e01b03198116811461195a57600080fd5b6000602082840312156148d357600080fd5b81356124c0816148ab565b6001600160a01b038116811461195a57600080fd5b6000806040838503121561490657600080fd5b8235614911816148de565b915060208301356001600160601b038116811461492d57600080fd5b809150509250929050565b60005b8381101561495357818101518382015260200161493b565b50506000910152565b60008151808452614974816020860160208601614938565b601f01601f19169290920160200192915050565b6020815260006124c0602083018461495c565b600080604083850312156149ae57600080fd5b82356149b9816148de565b946020939093013593505050565b801515811461195a57600080fd5b6000602082840312156149e757600080fd5b81356124c0816149c7565b600080600060608486031215614a0757600080fd5b8335614a12816148de565b92506020840135614a22816148de565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614a7157614a71614a33565b604052919050565b60006001600160401b03821115614a9257614a92614a33565b50601f01601f191660200190565b6000614ab3614aae84614a79565b614a49565b9050828152838383011115614ac757600080fd5b828260208301376000602084830101529392505050565b600082601f830112614aef57600080fd5b6124c083833560208501614aa0565b60008060408385031215614b1157600080fd5b8235915060208301356001600160401b03811115614b2e57600080fd5b614b3a85828601614ade565b9150509250929050565b60008060408385031215614b5757600080fd5b50508035926020909101359150565b600060208284031215614b7857600080fd5b81356124c0816148de565b803560198110610bd057600080fd5b600060208284031215614ba457600080fd5b6124c082614b83565b60008083601f840112614bbf57600080fd5b5081356001600160401b03811115614bd657600080fd5b6020830191508360208260051b85010111156111fb57600080fd5b60006001600160401b03821115614c0a57614c0a614a33565b5060051b60200190565b600080600080600060608688031215614c2c57600080fd5b85356001600160401b0380821115614c4357600080fd5b614c4f89838a01614bad565b9097509550602091508782013581811115614c6957600080fd5b614c758a828b01614bad565b909650945050604088013581811115614c8d57600080fd5b8801601f81018a13614c9e57600080fd5b8035614cac614aae82614bf1565b81815260059190911b8201840190848101908c831115614ccb57600080fd5b8584015b83811015614d0357803586811115614ce75760008081fd5b614cf58f8983890101614ade565b845250918601918601614ccf565b508096505050505050509295509295909350565b60008060208385031215614d2a57600080fd5b82356001600160401b0380821115614d4157600080fd5b818501915085601f830112614d5557600080fd5b813581811115614d6457600080fd5b866020828501011115614d7657600080fd5b60209290920196919550909350505050565b60008060408385031215614d9b57600080fd5b8235614da6816148de565b9150614db460208401614b83565b90509250929050565b600082601f830112614dce57600080fd5b81356020614dde614aae83614bf1565b82815260059290921b84018101918181019086841115614dfd57600080fd5b8286015b84811015614e1f57614e1281614b83565b8352918301918301614e01565b509695505050505050565b600060208284031215614e3c57600080fd5b81356001600160401b03811115614e5257600080fd5b612aec84828501614dbd565b60ff87811682528616602082015263ffffffff851660408201526001600160a01b0384166060820152821515608082015260c060a08201819052600090614ea79083018461495c565b98975050505050505050565b60008060408385031215614ec657600080fd5b8235614ed1816148de565b9150602083013561492d816149c7565b60008060008060808587031215614ef757600080fd5b8435614f02816148de565b93506020850135614f12816148de565b92506040850135915060608501356001600160401b03811115614f3457600080fd5b614f4087828801614ade565b91505092959194509250565b60008060408385031215614f5f57600080fd5b82356001600160401b0380821115614f7657600080fd5b818501915085601f830112614f8a57600080fd5b81356020614f9a614aae83614bf1565b82815260059290921b84018101918181019089841115614fb957600080fd5b948201945b83861015614fe0578535614fd1816148de565b82529482019490820190614fbe565b96505086013592505080821115614ff657600080fd5b50614b3a85828601614dbd565b6000806040838503121561501657600080fd5b8235615021816148de565b9150602083013561492d816148de565b60008060006060848603121561504657600080fd5b8335615051816148de565b92506020840135915060408401356001600160401b0381111561507357600080fd5b8401601f8101861361508457600080fd5b61509386823560208401614aa0565b9150509250925092565b600080600080600060a086880312156150b557600080fd5b85356150c0816148de565b945060208601356150d0816148de565b9350604086013592506060860135915060808601356001600160401b038111156150f957600080fd5b61510588828901614ade565b9150509295509295909350565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b600181811c9082168061514c57607f821691505b60208210810361516c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e75736572206c61636b7320726f6c6560881b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b2a57610b2a615237565b634e487b7160e01b600052601260045260246000fd5b60008261528957615289615264565b500490565b6000602082840312156152a057600080fd5b81516124c0816148de565b6000602082840312156152bd57600080fd5b5051919050565b634e487b7160e01b600052602160045260246000fd5b6000600182016152ec576152ec615237565b5060010190565b828482376000838201600081528351615310818360208801614938565b0195945050505050565b6000825161532c818460208701614938565b631036b4b760e11b920191825250600401919050565b61181760f11b81526000825161535f816002850160208701614938565b602560f81b6002939091019283015250600301919050565b604081526005604082015264706565727360d81b60608201526080602082015260006124c0608083018461495c565b60006153b4614aae84614a79565b90508281528383830111156153c857600080fd5b6124c0836020830184614938565b6000602082840312156153e857600080fd5b81516001600160401b038111156153fe57600080fd5b8201601f8101841361540f57600080fd5b612aec848251602084016153a6565b604081526008604082015267636f76657261676560c01b60608201526080602082015260006124c0608083018461495c565b6040815260096040820152683832b2b910323ab91760b91b60608201526080602082015260006124c0608083018461495c565b6040815260096040820152686e657420737461746560b81b60608201526080602082015260006124c0608083018461495c565b600086516154c8818460208b01614938565b8083019050600b60fa1b80825287516154e8816001850160208c01614938565b600192019182018190528651615505816002850160208b01614938565b600292019182018190528551615522816003850160208a01614938565b6003920191820152835161553d816004840160208801614938565b01600401979650505050505050565b81810381811115610b2a57610b2a615237565b60006020828403121561557157600080fd5b81516124c0816149c7565b80820180821115610b2a57610b2a615237565b805161ffff16825260208082015160ff169083015260408082015163ffffffff16908301526060808201516001600160a01b03169083015260808082015164ffffffffff169083015260a090810151910152565b848152835461ffff81166020830152601081901c60ff166040830152601881901c63ffffffff166060830152603881901c6001600160a01b0316608083015260d81c60a0820152600184015460c0820152610260810161564660e083018561558f565b6132c96101a083018461558f565b60018060a01b03841681528260208201526060604082015260006132c9606083018461495c565b634e487b7160e01b600052603160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826156f2576156f2615264565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061572a9083018461495c565b9695505050505050565b60006020828403121561574657600080fd5b81516124c0816148ab56fea264697066735822122011dab8150a6c3b30ba0c83937091ff004c1dc3c15977ff1f9b0d57f4755e8c3d64736f6c634300081100330000000000000000000000000000000000000000000000000000000000000003

Deployed Bytecode

0x6080604052600436106103805760003560e01c80635c471995116101d1578063b74866fb11610102578063e5e363db116100a0578063f09f3f311161006f578063f09f3f3114610a4f578063f23a6e6114610a6f578063f2fde38b14610aa8578063f9d4b07114610ac857600080fd5b8063e5e363db146109d9578063e985e9c5146109f9578063e9d0348714610a19578063ef787f3a14610a2f57600080fd5b8063cc162102116100dc578063cc16210214610959578063cf8dec8a14610979578063d84a522314610999578063e04388c4146109b957600080fd5b8063b74866fb146108f9578063b88d4fde14610919578063c87b56dd1461093957600080fd5b80638da5cb5b1161016f57806395d89b411161014957806395d89b411461089c578063a22cb465146108b1578063abccce24146108d1578063af7460f7146108e457600080fd5b80638da5cb5b1461084757806394e83b9b1461085c57806395a8c58d1461087c57600080fd5b806365990b9a116101ab57806365990b9a146107cb57806370a08231146107e0578063828e58e2146108005780638456cb591461083257600080fd5b80635c471995146107715780635c975abb146107915780636352211e146107ab57600080fd5b806323b872dd116102b65780633e9413991161025457806344deb6f31161022357806344deb6f3146106f05780634f6ccce71461071057806354b8c60114610730578063550bb2f11461075157600080fd5b80633e9413991461067b5780633f4ba83a1461069b57806342842e0e146106b0578063439fab91146106d057600080fd5b80632f745c59116102905780632f745c591461060657806334fae557146106265780633c4bec2a146106465780633ccfd60b1461066657600080fd5b806323b872dd14610587578063271e38fa146105a75780632a55205a146105c757600080fd5b80630c8f1e9211610323578063107365bc116102fd578063107365bc146104fd57806317d70f7c1461051d57806318160ddd146105515780631b95da2c1461056757600080fd5b80630c8f1e92146104995780630ce06b68146104b95780630fb1373f146104d957600080fd5b806306fdde031161035f57806306fdde03146103fe578063081812fc1461042057806308d24e2314610458578063095ea7b31461047957600080fd5b8062923f9e1461038557806301ffc9a7146103bc57806304634d8d146103dc575b600080fd5b34801561039157600080fd5b506103a76103a0366004614892565b600a541190565b60405190151581526020015b60405180910390f35b3480156103c857600080fd5b506103a76103d73660046148c1565b610ae8565b3480156103e857600080fd5b506103fc6103f73660046148f3565b610bd5565b005b34801561040a57600080fd5b50610413610d31565b6040516103b39190614988565b34801561042c57600080fd5b5061044061043b366004614892565b610dbf565b6040516001600160a01b0390911681526020016103b3565b34801561046457600080fd5b506006546103a790600160b01b900460ff1681565b34801561048557600080fd5b506103fc61049436600461499b565b610e44565b3480156104a557600080fd5b506103fc6104b43660046149d5565b610f59565b3480156104c557600080fd5b506103fc6104d436600461499b565b610fa0565b3480156104e557600080fd5b506104ef60075481565b6040519081526020016103b3565b34801561050957600080fd5b506103fc610518366004614892565b610fe5565b34801561052957600080fd5b506104ef7f000000000000000000000000000000000000000000000000000000000000000381565b34801561055d57600080fd5b506104ef600a5481565b34801561057357600080fd5b506103fc610582366004614892565b61105e565b34801561059357600080fd5b506103fc6105a23660046149f2565b61108c565b3480156105b357600080fd5b506103fc6105c2366004614afe565b6110bd565b3480156105d357600080fd5b506105e76105e2366004614b44565b6111c7565b604080516001600160a01b0390931683526020830191909152016103b3565b34801561061257600080fd5b506104ef61062136600461499b565b611202565b34801561063257600080fd5b506103fc610641366004614b66565b6112b6565b34801561065257600080fd5b506103a7610661366004614b92565b6113df565b34801561067257600080fd5b506103fc611414565b34801561068757600080fd5b506103fc610696366004614c14565b611455565b3480156106a757600080fd5b506103fc6115c6565b3480156106bc57600080fd5b506103fc6106cb3660046149f2565b611673565b3480156106dc57600080fd5b506103fc6106eb366004614d17565b61168e565b3480156106fc57600080fd5b506103fc61070b366004614d88565b6117c3565b34801561071c57600080fd5b506104ef61072b366004614892565b61182b565b34801561073c57600080fd5b506006546103a790600160a81b900460ff1681565b34801561075d57600080fd5b506103fc61076c366004614e2a565b61187c565b34801561077d57600080fd5b506103fc61078c366004614b66565b61191a565b34801561079d57600080fd5b506003546103a79060ff1681565b3480156107b757600080fd5b506104406107c6366004614892565b61195d565b3480156107d757600080fd5b506104136119db565b3480156107ec57600080fd5b506104ef6107fb366004614b66565b611f04565b34801561080c57600080fd5b5061082061081b366004614892565b611f8b565b6040516103b396959493929190614e5e565b34801561083e57600080fd5b506103fc612238565b34801561085357600080fd5b506104406122d9565b34801561086857600080fd5b506103fc6108773660046149d5565b61236b565b34801561088857600080fd5b506103a7610897366004614d88565b6123f6565b3480156108a857600080fd5b506104136124c7565b3480156108bd57600080fd5b506103fc6108cc366004614eb3565b6124d4565b6103fc6108df366004614afe565b61259a565b3480156108f057600080fd5b506103fc6128b6565b34801561090557600080fd5b506103fc610914366004614d88565b6128ee565b34801561092557600080fd5b506103fc610934366004614ee1565b612956565b34801561094557600080fd5b50610413610954366004614892565b61298e565b34801561096557600080fd5b506103fc610974366004614b92565b612af4565b34801561098557600080fd5b506104ef610994366004614892565b612b5b565b3480156109a557600080fd5b506103fc6109b4366004614f4c565b612bcc565b3480156109c557600080fd5b506103fc6109d4366004614f4c565b612c84565b3480156109e557600080fd5b506104ef6109f4366004614b66565b612d3c565b348015610a0557600080fd5b506103a7610a14366004615003565b613051565b348015610a2557600080fd5b506104ef60085481565b348015610a3b57600080fd5b506103fc610a4a366004614892565b613080565b348015610a5b57600080fd5b506103fc610a6a366004615031565b6130e8565b348015610a7b57600080fd5b50610a8f610a8a36600461509d565b61317c565b6040516001600160e01b031990911681526020016103b3565b348015610ab457600080fd5b506103fc610ac3366004614b66565b6132d2565b348015610ad457600080fd5b50600054610440906001600160a01b031681565b600080546001600160a01b03163303610b30576301ffc9a760e01b6001600160e01b031983161480610b2a57506001600160e01b031982166332cc85cd60e11b145b92915050565b6301ffc9a760e01b6001600160e01b031983161480610b5f57506380ac58cd60e01b6001600160e01b03198316145b80610b7a575063780e9d6360e01b6001600160e01b03198316145b80610b955750635b5e139f60e01b6001600160e01b03198316145b80610bb0575063152a902d60e11b6001600160e01b03198316145b80610b2a57506001600160e01b031982166332cc85cd60e11b1492915050565b919050565b610bdd6122d9565b6001600160a01b0316336001600160a01b03161480610c025750610c023360006123f6565b80610c1757506000546001600160a01b031633145b610c3c5760405162461bcd60e51b8152600401610c3390615112565b60405180910390fd5b612710816001600160601b03161115610caa5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610c33565b6001600160a01b038216610d005760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610c33565b6155ef80546001600160a01b0319166001600160a01b0393909316929092179091556001600160601b03166155f055565b60048054610d3e90615138565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6a90615138565b8015610db75780601f10610d8c57610100808354040283529160200191610db7565b820191906000526020600020905b815481529060010190602001808311610d9a57829003601f168201915b505050505081565b6000600a548210610e275760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c33565b5060009081526155ed60205260409020546001600160a01b031690565b6000610e4f8261195d565b9050806001600160a01b0316836001600160a01b031603610ebc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c33565b336001600160a01b0382161480610ed85750610ed88133613051565b610f4a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c33565b610f548383613389565b505050565b6011610f6533826123f6565b610f815760405162461bcd60e51b8152600401610c3390615172565b5060068054911515600160b01b0260ff60b01b19909216919091179055565b33610fa96122d9565b6001600160a01b031614610fcf5760405162461bcd60e51b8152600401610c339061519b565b610fe1610fda6122d9565b83836133f8565b5050565b6010610ff133826123f6565b61100d5760405162461bcd60e51b8152600401610c3390615172565b60008211801561101d575060fa82105b6110585760405162461bcd60e51b815260206004820152600c60248201526b6f7574206f662072616e676560a01b6044820152606401610c33565b50600855565b600c61106a33826123f6565b6110865760405162461bcd60e51b8152600401610c3390615172565b50600755565b611096338261345c565b6110b25760405162461bcd60e51b8152600401610c33906151d0565b610f5483838361351a565b600b6110c933826123f6565b6110e55760405162461bcd60e51b8152600401610c3390615172565b60006110f08461195d565b6001600160a01b03811660009081526150de60205260408120919250906150df866150d3811061112257611122615221565b601091828204019190066002029054906101000a900461ffff1661ffff168154811061115057611150615221565b9060005260206000209060020201905060008061116c86613ae1565b8554600187019190915560ff6201000064ffffffffff909316600160d81b026001600160d81b03831681178490049190911660801790920262ff00001990921662ff0001600160d81b03909116171790935550505050505050565b60008060006127106155f054856111de919061524d565b6111e8919061527a565b6155ef546001600160a01b031693509150505b9250929050565b600061120d83611f04565b821061126f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c33565b6001600160a01b03831660009081526150de6020526040902080548390811061129a5761129a615221565b600091825260209091206002909102015461ffff169392505050565b6000546001600160a01b031633146112fc5760405162461bcd60e51b81526020600482015260096024820152680dcdee840c6dec8caf60bb1b6044820152606401610c33565b60008054906101000a90046001600160a01b03166001600160a01b031663a79b81736040518163ffffffff1660e01b8152600401602060405180830381865afa15801561134d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611371919061528e565b604051630f41a04d60e11b81526001600160a01b0383811660048301529190911690631e83409a906024016020604051808303816000875af11580156113bb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe191906152ab565b6000600260008360188111156113f7576113f76152c4565b60ff90811682526020820192909252604001600020541692915050565b3361141d6122d9565b6001600160a01b0316146114435760405162461bcd60e51b8152600401610c339061519b565b61145361144e6122d9565b613ccc565b565b601061146133826123f6565b61147d5760405162461bcd60e51b8152600401610c3390615172565b600685146114cd5760405162461bcd60e51b815260206004820152601760248201527f696e76616c696420626f6f7473747261702067726f75700000000000000000006044820152606401610c33565b600a541561150d5760405162461bcd60e51b815260206004820152600d60248201526c636c6f616b6e6574206c69766560981b6044820152606401610c33565b6006805460ff60b01b191690556003805460ff1916905560005b858110156115bd57600080600061155686858151811061154957611549615221565b6020026020010151613ae1565b9250925092506115a78a8a8681811061157157611571615221565b90506020020160208101906115869190614b66565b89898781811061159857611598615221565b90506020020135858585613d01565b50505080806115b5906152da565b915050611527565b50505050505050565b60156115d233826123f6565b6115ee5760405162461bcd60e51b8152600401610c3390615172565b60035460ff1615156001146116325760405162461bcd60e51b815260206004820152600a602482015269139bdd0814185d5cd95960b21b6044820152606401610c33565b6003805460ff191690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a150565b610f5483838360405180602001604052806000815250612956565b6116966122d9565b6001600160a01b0316336001600160a01b031614806116bb57506116bb3360006123f6565b806116d057506000546001600160a01b031633145b6116ec5760405162461bcd60e51b8152600401610c3390615112565b600654600160a01b900460ff16156117345760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b6044820152606401610c33565b6006805460ff60a01b1916600160a01b17905560008054604080513060208201526001600160a01b03909216828201528051808303820181526060830190915261179f9291829161178b91879187916080016152f3565b604051602081830303815290604052613f07565b600680546001600160a01b0319166001600160a01b03929092169190911790555050565b6117cb6122d9565b6001600160a01b0316336001600160a01b031614806117f057506117f03360006123f6565b8061180557506000546001600160a01b031633145b6118215760405162461bcd60e51b8152600401610c3390615112565b610fe1828261400b565b600061183882600a541190565b6118785760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a102a37b5b2b760791b6044820152606401610c33565b5090565b6118846122d9565b6001600160a01b0316336001600160a01b031614806118a957506118a93360006123f6565b806118be57506000546001600160a01b031633145b6118da5760405162461bcd60e51b8152600401610c3390615112565b60005b8151811015610fe1576119088282815181106118fb576118fb615221565b602002602001015161416c565b80611912816152da565b9150506118dd565b336119236122d9565b6001600160a01b0316146119495760405162461bcd60e51b8152600401610c339061519b565b61195a6119546122d9565b8261421b565b50565b600061196a82600a541190565b6119b65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a204e6f6e6578697374656e7420746f6b656e000000000000006044820152606401610c33565b600b826150d381106119ca576119ca615221565b01546001600160a01b031692915050565b606060006119f76009546008546119f2919061527a565b6142fe565b604051602001611a07919061531a565b60405160208183030381529060405290506000600660149054906101000a900460ff1615611a8b57600654600160b01b900460ff16611a675760405180604001604052806009815260200168617661696c61626c6560b81b815250611aac565b604051806040016040528060068152602001651a985b5b595960d21b815250611aac565b6040518060400160405280600781526020016670656e64696e6760c81b8152505b9050606060006150d3600a546103e8611ac5919061524d565b611acf919061527a565b90506000611adc826142fe565b9050600a821015611b0e5780604051602001611af89190615342565b6040516020818303038152906040529250611c4b565b6064821015611b8a5780600081518110611b2a57611b2a615221565b602001015160f81c60f81b81600181518110611b4857611b48615221565b016020908101516040516001600160f81b031993841692810192909252601760f91b6021830152919091166022820152602560f81b6023820152602401611af8565b6103e8821015611c2b5780600081518110611ba757611ba7615221565b602001015160f81c60f81b81600181518110611bc557611bc5615221565b602001015160f81c60f81b82600281518110611be357611be3615221565b016020908101516040516001600160f81b0319948516928101929092529183166021820152601760f91b602282015291166023820152602560f81b6024820152602501611af8565b604051806040016040528060048152602001633130302560e01b81525092505b600054600a546001600160a01b039091169063c669e9c990611c6c906142fe565b6040518263ffffffff1660e01b8152600401611c889190615377565b600060405180830381865afa158015611ca5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ccd91908101906153d6565b60005460405163c669e9c960e01b81526001600160a01b039091169063c669e9c990611cfd90879060040161541e565b600060405180830381865afa158015611d1a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d4291908101906153d6565b60005460405163c669e9c960e01b81526001600160a01b039091169063c669e9c990611d72908a90600401615450565b600060405180830381865afa158015611d8f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611db791908101906153d6565b60005460405163c669e9c960e01b81526001600160a01b039091169063c669e9c990611de7908a90600401615483565b600060405180830381865afa158015611e04573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e2c91908101906153d6565b6000546040805163c669e9c960e01b81526004810191909152600a604482015269746f6b656e207479706560b01b60648201526080602482015260076084820152664552432d37323160c81b60a48201526001600160a01b039091169063c669e9c99060c401600060405180830381865afa158015611eaf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ed791908101906153d6565b604051602001611eeb9594939291906154b6565b6040516020818303038152906040529550505050505090565b60006001600160a01b038216611f6e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610c33565b506001600160a01b031660009081526150de602052604090205490565b60008060008060006060611fa087600a541190565b611fdf5760405162461bcd60e51b815260206004820152601060248201526f1cda59db985b081b9bdd08199bdd5b9960821b6044820152606401610c33565b6000600b886150d38110611ff557611ff5615221565b01546001600160a01b031660008181526150de60205260408120919250906150df8a6150d3811061202857612028615221565b601091828204019190066002029054906101000a900461ffff1661ffff168154811061205657612056615221565b60009182526020822060029190910201805460018083015462010000830460078181169e50600482901c81169d506301000000850463ffffffff169c50600160381b85046001600160a01b03169b501c82169091149750919350600160d81b900460d81b6001600160d81b031916915b602581101561212a5760058110156120f5578281600581106120ea576120ea615221565b1a1561212a57612118565b8161210160058361554c565b6020811061211157612111615221565b1a1561212a575b80612122816152da565b9150506120c6565b6000816001600160401b0381111561214457612144614a33565b6040519080825280601f01601f19166020018201604052801561216e576020820181803683370190505b50905060005b828110156122255760058110156121c95784816005811061219757612197615221565b1a60f81b8282815181106121ad576121ad615221565b60200101906001600160f81b031916908160001a905350612213565b836121d560058361554c565b602081106121e5576121e5615221565b1a60f81b8282815181106121fb576121fb615221565b60200101906001600160f81b031916908160001a9053505b8061221d816152da565b915050612174565b5080965050505050505091939550919395565b601561224433826123f6565b6122605760405162461bcd60e51b8152600401610c3390615172565b60035460ff161561229c5760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b6044820152606401610c33565b6003805460ff191660011790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001611668565b600080546040516331a9108f60e11b81527f000000000000000000000000000000000000000000000000000000000000000360048201526001600160a01b0390911690636352211e90602401602060405180830381865afa158015612342573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612366919061528e565b905090565b600c61237733826123f6565b6123935760405162461bcd60e51b8152600401610c3390615172565b6006546040516394e83b9b60e01b815283151560048201526001600160a01b03909116906394e83b9b90602401600060405180830381600087803b1580156123da57600080fd5b505af11580156123ee573d6000803e3d6000fd5b505050505050565b600081601881111561240a5761240a6152c4565b60ff1660016000856001600160a01b03166001600160a01b0316815260200190815260200160002054901c60001c6001166001148061248157506012826018811115612458576124586152c4565b1480156124815750733ee7fc9065f3efe3b6ab1894845e41146cb773856001600160a01b038416145b806124c05750600082601881111561249b5761249b6152c4565b1480156124c057506124ab6122d9565b6001600160a01b0316836001600160a01b0316145b9392505050565b60058054610d3e90615138565b6001600160a01b038216330361252c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c33565b3360008181526155ee602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a35050565b60006125a58361195d565b9050806001600160a01b03166125ba8461195d565b6001600160a01b031614801561271257506001600160a01b0381163314806125e757506125e78133613051565b806127125750600654600160a81b900460ff168015612712575060405163090c9a2d60e41b81523360048201526001600160a01b03821660248201523060448201526d76a84fef008cdabe6409d2fe638b906390c9a2d090606401602060405180830381865afa15801561265f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612683919061555f565b806127125750604051631574d39f60e31b81523360048201526001600160a01b0382166024820152306044820152606481018490526d76a84fef008cdabe6409d2fe638b9063aba69cf890608401602060405180830381865afa1580156126ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612712919061555f565b61275e5760405162461bcd60e51b815260206004820152601c60248201527f756e617574686f72697a656420616363657373206465746563746564000000006044820152606401610c33565b6007543410156127a45760405162461bcd60e51b81526020600482015260116024820152707061727473206172656e2774206672656560781b6044820152606401610c33565b60008060006127b285613ae1565b6001600160a01b03871660009081526150de602052604081209396509194509250906150df886150d381106127e9576127e9615221565b601091828204019190066002029054906101000a900461ffff1661ffff168154811061281757612817615221565b6000918252602090912060029091020180546001600160d81b0316600160d81b64ffffffffff861602178082556001820184905590915061286590620100009004600f16600486901b61557c565b815466ffffffff010000600160d81b0319166201000060ff9290921691909102600160381b600160d81b03191617600160381b6001600160a01b039690961695909502949094179093555050505050565b60126128c233826123f6565b6128de5760405162461bcd60e51b8152600401610c3390615172565b506006805460ff60a81b19169055565b6128f66122d9565b6001600160a01b0316336001600160a01b0316148061291b575061291b3360006123f6565b8061293057506000546001600160a01b031633145b61294c5760405162461bcd60e51b8152600401610c3390615112565b610fe18282614390565b612960338361345c565b61297c5760405162461bcd60e51b8152600401610c33906151d0565b61298884848484614485565b50505050565b606061299b82600a541190565b6129d35760405162461bcd60e51b8152602060048201526009602482015268139bc81cda59db985b60ba1b6044820152606401610c33565b6000600b836150d381106129e9576129e9615221565b01546001600160a01b0316905060006150df846150d38110612a0d57612a0d615221565b6010810491909101546006546001600160a01b0385811660009081526150de602052604090208054600f9095166002026101000a90930461ffff169450169163c41213e991879185908110612a6457612a64615221565b9060005260206000209060020201612a7d6001896144b8565b612a8860028a6144b8565b6040518563ffffffff1660e01b8152600401612aa794939291906155e3565b600060405180830381865afa158015612ac4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612aec91908101906153d6565b949350505050565b612afc6122d9565b6001600160a01b0316336001600160a01b03161480612b215750612b213360006123f6565b80612b3657506000546001600160a01b031633145b612b525760405162461bcd60e51b8152600401610c3390615112565b61195a8161416c565b6000612b6882600a541190565b612ba55760405162461bcd60e51b815260206004820152600e60248201526d6661696c656420746f2074756e6560901b6044820152606401610c33565b610b2a600b836150d38110612bbc57612bbc615221565b01546001600160a01b0316612d3c565b612bd46122d9565b6001600160a01b0316336001600160a01b03161480612bf95750612bf93360006123f6565b80612c0e57506000546001600160a01b031633145b612c2a5760405162461bcd60e51b8152600401610c3390615112565b60005b8151811015610f5457612c72838281518110612c4b57612c4b615221565b6020026020010151838381518110612c6557612c65615221565b6020026020010151614390565b80612c7c816152da565b915050612c2d565b612c8c6122d9565b6001600160a01b0316336001600160a01b03161480612cb15750612cb13360006123f6565b80612cc657506000546001600160a01b031633145b612ce25760405162461bcd60e51b8152600401610c3390615112565b60005b8151811015610f5457612d2a838281518110612d0357612d03615221565b6020026020010151838381518110612d1d57612d1d615221565b602002602001015161400b565b80612d34816152da565b915050612ce5565b6000612d4782611f04565b612d5290600361524d565b604051627eeac760e11b81526001600160a01b0384811660048084019190915260248301527f000000000000000000000000d3a0b315023243632a15fd623d6f33314193df4e169062fdd58e90604401602060405180830381865afa158015612dbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612de391906152ab565b604051627eeac760e11b81526001600160a01b038581166004830152600360248301527f000000000000000000000000d3a0b315023243632a15fd623d6f33314193df4e169062fdd58e90604401602060405180830381865afa158015612e4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e7291906152ab565b604051627eeac760e11b81526001600160a01b038681166004830152600260248301527f000000000000000000000000d3a0b315023243632a15fd623d6f33314193df4e169062fdd58e90604401602060405180830381865afa158015612edd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f0191906152ab565b604051627eeac760e11b81526001600160a01b038781166004830152600160248301527f000000000000000000000000d3a0b315023243632a15fd623d6f33314193df4e169062fdd58e90604401602060405180830381865afa158015612f6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f9091906152ab565b604051627eeac760e11b81526001600160a01b038881166004830152600060248301527f000000000000000000000000d3a0b315023243632a15fd623d6f33314193df4e169062fdd58e90604401602060405180830381865afa158015612ffb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061301f91906152ab565b613029919061557c565b613033919061557c565b61303d919061557c565b613047919061557c565b610b2a919061557c565b6001600160a01b0391821660009081526155ee6020908152604080832093909416825291909152205460ff1690565b601661308c33826123f6565b6130a85760405162461bcd60e51b8152600401610c3390615172565b600082116130e25760405162461bcd60e51b81526020600482015260076024820152661a5b9d985b1a5960ca1b6044820152606401610c33565b50600955565b600a6130f433826123f6565b6131105760405162461bcd60e51b8152600401610c3390615172565b60065460405163f09f3f3160e01b81526001600160a01b039091169063f09f3f319061314490879087908790600401615654565b600060405180830381600087803b15801561315e57600080fd5b505af1158015613172573d6000803e3d6000fd5b5050505050505050565b6000336001600160a01b037f000000000000000000000000d3a0b315023243632a15fd623d6f33314193df4e16146131f65760405162461bcd60e51b815260206004820152601860248201527f756e7265636f676e697a6564207472616e73706f6e64657200000000000000006044820152606401610c33565b600654600160b01b900460ff16156132395760405162461bcd60e51b81526020600482015260066024820152651a985b5b595960d21b6044820152606401610c33565b826001146132815760405162461bcd60e51b8152602060048201526015602482015274746f6f206d75636820696e746572666572656e636560581b6044820152606401610c33565b600080600061328f85613ae1565b9250925092506132a28888858585613d01565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf9793505050505b95945050505050565b336132db6122d9565b6001600160a01b0316146133015760405162461bcd60e51b8152600401610c339061519b565b6000546040516350a1a66560e01b81527f000000000000000000000000000000000000000000000000000000000000000360048201526001600160a01b038381166024830152909116906350a1a66590604401600060405180830381600087803b15801561336e57600080fd5b505af1158015613382573d6000803e3d6000fd5b5050505050565b60008181526155ed6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906133bf8261195d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b604051632142170760e11b81523060048201526001600160a01b038481166024830152604482018390528316906342842e0e90606401600060405180830381600087803b15801561344857600080fd5b505af11580156115bd573d6000803e3d6000fd5b6000600a5482106134c45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c33565b60006134cf8361195d565b9050806001600160a01b0316846001600160a01b0316148061350a5750836001600160a01b03166134ff84610dbf565b6001600160a01b0316145b80612aec5750612aec8185613051565b60035460ff16156135565760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b6044820152606401610c33565b826001600160a01b03166135698261195d565b6001600160a01b0316146135d15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c33565b6001600160a01b0382166136335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c33565b61363e600082613389565b60006150df826150d3811061365557613655615221565b601091828204019190066002029054906101000a900461ffff16905060006150de6000866001600160a01b03166001600160a01b031681526020019081526020016000208261ffff16815481106136ae576136ae615221565b600091825260208083206040805160c081018252600294909402909101805461ffff8116855262010000810460ff16858501526301000000810463ffffffff1685840152600160381b81046001600160a01b039081166060870152600160d81b90910464ffffffffff16608086015260019182015460a08601528a1685526150de9092528320549193506137419161554c565b90508261ffff168114613911576001600160a01b03861660009081526150de6020526040812080548390811061377957613779615221565b600091825260208083206040805160c081018252600294909402909101805461ffff808216865262010000820460ff16868601526301000000820463ffffffff1686850152600160381b82046001600160a01b039081166060880152600160d81b90920464ffffffffff16608087015260019092015460a08601528c1685526150de90925290922080549193508392909190871690811061381c5761381c615221565b6000918252602091829020835160029092020180549284015160408501516060860151608087015164ffffffffff16600160d81b026001600160d81b036001600160a01b03909216600160381b02600160381b600160d81b031963ffffffff909416630100000002939093166301000000600160d81b031960ff909516620100000262ffffff1990981661ffff97881617979097179390931695909517179390931692909217825560a090920151600190910155815185916150df91166150d381106138ea576138ea615221565b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550505b6001600160a01b03861660009081526150de602052604090208054806139395761393961567b565b60008281526020808220600260001990940193840201828155600101829055919092556001600160a01b03871682526150de905260409020546150df856150d3811061398757613987615221565b60108104909101805461ffff9384166002600f90941684026101000a908102908502199091161790556001600160a01b0380881660009081526150de60209081526040808320805460018181018355918552938390208951949096029095018054928901519189015160608a015160808b015164ffffffffff16600160d81b026001600160d81b0391909716600160381b02600160381b600160d81b031963ffffffff909316630100000002929092166301000000600160d81b031960ff909516620100000262ffffff199096169690991695909517939093179190911695909517171617825560a084015191015584600b856150d38110613a8b57613a8b615221565b0180546001600160a01b0319166001600160a01b03928316179055604051859187811691908916907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a4505050505050565b600080600083600081518110613af957613af9615221565b016020015160f81c925060058310613b535760405162461bcd60e51b815260206004820152601960248201527f696e636f6d70617469626c6520706f77657220737570706c79000000000000006044820152606401610c33565b602684511115613b955760405162461bcd60e51b815260206004820152600d60248201526c19185d18481bdd995c9b1bd859609a1b6044820152606401610c33565b60015b8451811015613c67576000858281518110613bb557613bb5615221565b016020015160f81c90506001811b6f07fffffe0000000083ffe0830000000016613c215760405162461bcd60e51b815260206004820152601760248201527f6661696c656420746f206465636f6465207369676e616c0000000000000000006044820152606401610c33565b6006821015613c425760089390931b92613c3b818561557c565b9350613c56565b60089290921b91613c53818461557c565b92505b50613c60816152da565b9050613b98565b506006845111613c9f5760018451613c7f919061554c565b613c8a90600561554c565b613c9590600861524d565b82901b9150613cc5565b60068451613cad919061554c565b613cb890602061554c565b613cc390600861524d565b1b5b9193909250565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610fe1573d6000803e3d6000fd5b600a80549081906000613d13836152da565b90915550506001600160a01b03861660009081526150de60205260409020546150df826150d38110613d4757613d47615221565b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506150de6000876001600160a01b03166001600160a01b031681526020019081526020016000206040518060c001604052808361ffff16815260200187600488901b613db7919061557c565b60ff908116825263ffffffff4381166020808501919091526001600160a01b03808d1660408087019190915264ffffffffff808c1660608089019190915260809788018c9052895460018181018c5560009b8c529a8690208a516002909202018054968b0151948b0151928b0151998b0151909316600160d81b026001600160d81b0399909516600160381b02600160381b600160d81b031992909716630100000002919091166301000000600160d81b031993909716620100000262ffffff1990951661ffff90911617939093171693909317919091179290921617815560a09091015191015585600b826150d38110613eb457613eb4615221565b0180546001600160a01b0319166001600160a01b0392831617905560405182918816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050505050565b600083471015613f595760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e63650000006044820152606401610c33565b8151600003613faa5760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f6044820152606401610c33565b8282516020840186f590506001600160a01b0381166124c05760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f79000000000000006044820152606401610c33565b601281601881111561401f5761401f6152c4565b036140785760405162461bcd60e51b815260206004820152602360248201527f796f752063616e6e6f742073696d706c79206265636f6d6520706f6e6465727760448201526261726560e81b6064820152608401610c33565b6002600082601881111561408e5761408e6152c4565b60ff908116825260208201929092526040016000205416156140db5760405162461bcd60e51b81526020600482015260066024820152651b1bd8dad95960d21b6044820152606401610c33565b8060188111156140ed576140ed6152c4565b6001600160a01b0383166000908152600160208190526040909120805460ff939093169190911b909117905580601881111561412b5761412b6152c4565b60ff16826001600160a01b03167f25cef78a4b665fcf0923e3f0e15c3449d405e0fa46d991b78246e8aaf19571ab600160405161258e911515815260200190565b60026000826018811115614182576141826152c4565b60ff90811682526020820192909252604001600020541661195a576001600260008360188111156141b5576141b56152c4565b60ff1681526020810191909152604001600020805460ff19169115159190911790558060188111156141e9576141e96152c4565b60ff167f2a4c011a3eb263cc32455711057131757df48518d49547f77ab832d8681a53ff60405160405180910390a250565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90859083906370a0823190602401602060405180830381865afa15801561426b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061428f91906152ab565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156142da573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612988919061555f565b6060600061430b836146c2565b60010190506000816001600160401b0381111561432a5761432a614a33565b6040519080825280601f01601f191660200182016040528015614354576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461435e57509392505050565b600260008260188111156143a6576143a66152c4565b60ff908116825260208201929092526040016000205416156143f35760405162461bcd60e51b81526020600482015260066024820152651b1bd8dad95960d21b6044820152606401610c33565b806018811115614405576144056152c4565b6001600160a01b0383166000908152600160208190526040909120805460ff939093169190911b199091169055806018811115614444576144446152c4565b60ff16826001600160a01b03167f25cef78a4b665fcf0923e3f0e15c3449d405e0fa46d991b78246e8aaf19571ab600060405161258e911515815260200190565b61449084848461351a565b61449c8484848461479a565b6129885760405162461bcd60e51b8152600401610c3390615691565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a08101919091526000600854436144fa91906156e3565b614504904361554c565b90506000848461451560028561554c565b6040805160208101949094528301919091524060608201526080016040516020818303038152906040528051906020012060001c63ffffffff1690506000600b600a54680470d97cab4ce6941b8461456d919061524d565b61457791906156e3565b6150d3811061458857614588615221565b01546001600160a01b0316905080856145a260028661554c565b60405160609390931b6bffffffffffffffffffffffff19166020840152603483019190915240605482015260740160408051601f1981840301815291815281516020928301206001600160a01b03841660009081526150de9093529120805463ffffffff90921693509061461f680470d97cab4ce6941b8561524d565b61462991906156e3565b8154811061463957614639615221565b60009182526020918290206040805160c081018252600293909302909101805461ffff8116845262010000810460ff16948401949094526301000000840463ffffffff1691830191909152600160381b83046001600160a01b03166060830152600160d81b90920464ffffffffff16608082015260019091015460a08201529695505050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106147015772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061472d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061474b57662386f26fc10000830492506010015b6305f5e1008310614763576305f5e100830492506008015b612710831061477757612710830492506004015b60648310614789576064830492506002015b600a8310610b2a5760010192915050565b6000833b1561488757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906147d59033908990889088906004016156f7565b6020604051808303816000875af1925050508015614810575060408051601f3d908101601f1916820190925261480d91810190615734565b60015b61486d573d80801561483e576040519150601f19603f3d011682016040523d82523d6000602084013e614843565b606091505b5080516000036148655760405162461bcd60e51b8152600401610c3390615691565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612aec565b506001949350505050565b6000602082840312156148a457600080fd5b5035919050565b6001600160e01b03198116811461195a57600080fd5b6000602082840312156148d357600080fd5b81356124c0816148ab565b6001600160a01b038116811461195a57600080fd5b6000806040838503121561490657600080fd5b8235614911816148de565b915060208301356001600160601b038116811461492d57600080fd5b809150509250929050565b60005b8381101561495357818101518382015260200161493b565b50506000910152565b60008151808452614974816020860160208601614938565b601f01601f19169290920160200192915050565b6020815260006124c0602083018461495c565b600080604083850312156149ae57600080fd5b82356149b9816148de565b946020939093013593505050565b801515811461195a57600080fd5b6000602082840312156149e757600080fd5b81356124c0816149c7565b600080600060608486031215614a0757600080fd5b8335614a12816148de565b92506020840135614a22816148de565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614a7157614a71614a33565b604052919050565b60006001600160401b03821115614a9257614a92614a33565b50601f01601f191660200190565b6000614ab3614aae84614a79565b614a49565b9050828152838383011115614ac757600080fd5b828260208301376000602084830101529392505050565b600082601f830112614aef57600080fd5b6124c083833560208501614aa0565b60008060408385031215614b1157600080fd5b8235915060208301356001600160401b03811115614b2e57600080fd5b614b3a85828601614ade565b9150509250929050565b60008060408385031215614b5757600080fd5b50508035926020909101359150565b600060208284031215614b7857600080fd5b81356124c0816148de565b803560198110610bd057600080fd5b600060208284031215614ba457600080fd5b6124c082614b83565b60008083601f840112614bbf57600080fd5b5081356001600160401b03811115614bd657600080fd5b6020830191508360208260051b85010111156111fb57600080fd5b60006001600160401b03821115614c0a57614c0a614a33565b5060051b60200190565b600080600080600060608688031215614c2c57600080fd5b85356001600160401b0380821115614c4357600080fd5b614c4f89838a01614bad565b9097509550602091508782013581811115614c6957600080fd5b614c758a828b01614bad565b909650945050604088013581811115614c8d57600080fd5b8801601f81018a13614c9e57600080fd5b8035614cac614aae82614bf1565b81815260059190911b8201840190848101908c831115614ccb57600080fd5b8584015b83811015614d0357803586811115614ce75760008081fd5b614cf58f8983890101614ade565b845250918601918601614ccf565b508096505050505050509295509295909350565b60008060208385031215614d2a57600080fd5b82356001600160401b0380821115614d4157600080fd5b818501915085601f830112614d5557600080fd5b813581811115614d6457600080fd5b866020828501011115614d7657600080fd5b60209290920196919550909350505050565b60008060408385031215614d9b57600080fd5b8235614da6816148de565b9150614db460208401614b83565b90509250929050565b600082601f830112614dce57600080fd5b81356020614dde614aae83614bf1565b82815260059290921b84018101918181019086841115614dfd57600080fd5b8286015b84811015614e1f57614e1281614b83565b8352918301918301614e01565b509695505050505050565b600060208284031215614e3c57600080fd5b81356001600160401b03811115614e5257600080fd5b612aec84828501614dbd565b60ff87811682528616602082015263ffffffff851660408201526001600160a01b0384166060820152821515608082015260c060a08201819052600090614ea79083018461495c565b98975050505050505050565b60008060408385031215614ec657600080fd5b8235614ed1816148de565b9150602083013561492d816149c7565b60008060008060808587031215614ef757600080fd5b8435614f02816148de565b93506020850135614f12816148de565b92506040850135915060608501356001600160401b03811115614f3457600080fd5b614f4087828801614ade565b91505092959194509250565b60008060408385031215614f5f57600080fd5b82356001600160401b0380821115614f7657600080fd5b818501915085601f830112614f8a57600080fd5b81356020614f9a614aae83614bf1565b82815260059290921b84018101918181019089841115614fb957600080fd5b948201945b83861015614fe0578535614fd1816148de565b82529482019490820190614fbe565b96505086013592505080821115614ff657600080fd5b50614b3a85828601614dbd565b6000806040838503121561501657600080fd5b8235615021816148de565b9150602083013561492d816148de565b60008060006060848603121561504657600080fd5b8335615051816148de565b92506020840135915060408401356001600160401b0381111561507357600080fd5b8401601f8101861361508457600080fd5b61509386823560208401614aa0565b9150509250925092565b600080600080600060a086880312156150b557600080fd5b85356150c0816148de565b945060208601356150d0816148de565b9350604086013592506060860135915060808601356001600160401b038111156150f957600080fd5b61510588828901614ade565b9150509295509295909350565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b600181811c9082168061514c57607f821691505b60208210810361516c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e75736572206c61636b7320726f6c6560881b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b2a57610b2a615237565b634e487b7160e01b600052601260045260246000fd5b60008261528957615289615264565b500490565b6000602082840312156152a057600080fd5b81516124c0816148de565b6000602082840312156152bd57600080fd5b5051919050565b634e487b7160e01b600052602160045260246000fd5b6000600182016152ec576152ec615237565b5060010190565b828482376000838201600081528351615310818360208801614938565b0195945050505050565b6000825161532c818460208701614938565b631036b4b760e11b920191825250600401919050565b61181760f11b81526000825161535f816002850160208701614938565b602560f81b6002939091019283015250600301919050565b604081526005604082015264706565727360d81b60608201526080602082015260006124c0608083018461495c565b60006153b4614aae84614a79565b90508281528383830111156153c857600080fd5b6124c0836020830184614938565b6000602082840312156153e857600080fd5b81516001600160401b038111156153fe57600080fd5b8201601f8101841361540f57600080fd5b612aec848251602084016153a6565b604081526008604082015267636f76657261676560c01b60608201526080602082015260006124c0608083018461495c565b6040815260096040820152683832b2b910323ab91760b91b60608201526080602082015260006124c0608083018461495c565b6040815260096040820152686e657420737461746560b81b60608201526080602082015260006124c0608083018461495c565b600086516154c8818460208b01614938565b8083019050600b60fa1b80825287516154e8816001850160208c01614938565b600192019182018190528651615505816002850160208b01614938565b600292019182018190528551615522816003850160208a01614938565b6003920191820152835161553d816004840160208801614938565b01600401979650505050505050565b81810381811115610b2a57610b2a615237565b60006020828403121561557157600080fd5b81516124c0816149c7565b80820180821115610b2a57610b2a615237565b805161ffff16825260208082015160ff169083015260408082015163ffffffff16908301526060808201516001600160a01b03169083015260808082015164ffffffffff169083015260a090810151910152565b848152835461ffff81166020830152601081901c60ff166040830152601881901c63ffffffff166060830152603881901c6001600160a01b0316608083015260d81c60a0820152600184015460c0820152610260810161564660e083018561558f565b6132c96101a083018461558f565b60018060a01b03841681528260208201526060604082015260006132c9606083018461495c565b634e487b7160e01b600052603160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826156f2576156f2615264565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061572a9083018461495c565b9695505050505050565b60006020828403121561574657600080fd5b81516124c0816148ab56fea264697066735822122011dab8150a6c3b30ba0c83937091ff004c1dc3c15977ff1f9b0d57f4755e8c3d64736f6c63430008110033

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

0000000000000000000000000000000000000000000000000000000000000003

-----Decoded View---------------
Arg [0] : tokenId (uint256): 3

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


Loading...
Loading
Loading...
Loading
[ 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.