ETH Price: $3,416.87 (+1.29%)

Token

Digirocks (DIGIROCKS)
 

Overview

Max Total Supply

2,166 DIGIROCKS

Holders

1,314

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
mattomalley.eth
Balance
0 DIGIROCKS
0x0f7a2eb5dfe07f58b73f2a61094bbd3541d3c520
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

DigiRocks are ERC721 tokens with a combination of rare attributes- there are 4,000 DigiRocks in total.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Digirocks

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-03-27
*/

// File: @openzeppelin/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/introspection/IERC165.sol

pragma solidity ^0.7.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: @openzeppelin/contracts/token/ERC721/IERC721.sol

pragma solidity ^0.7.0;


/**
 * @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`, 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 be 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Metadata.sol

pragma solidity ^0.7.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol

pragma solidity ^0.7.0;


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

    /**
     * @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: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol

pragma solidity ^0.7.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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}

// File: @openzeppelin/contracts/introspection/ERC165.sol

pragma solidity ^0.7.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.7.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity ^0.7.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/utils/EnumerableSet.sol

pragma solidity ^0.7.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// File: @openzeppelin/contracts/utils/EnumerableMap.sol

pragma solidity ^0.7.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     */
    function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
        uint256 keyIndex = map._indexes[key];
        if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key)
        return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {_tryGet}.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

   /**
    * @dev Returns the element stored at position `index` in the set. O(1).
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     *
     * _Available since v3.4._
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol

pragma solidity ^0.7.0;

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

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

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol

pragma solidity ^0.7.0;












/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

    // 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;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping (uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(base, tokenId.toString()));
    }

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view virtual returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _tokenOwners.contains(tokenId);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
        _mint(to, tokenId);
        require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId); // internal owner

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); // internal owner
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        private returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }
        bytes memory returndata = to.functionCall(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ), "ERC721: transfer to non ERC721Receiver implementer");
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}

// File: @openzeppelin/contracts/access/Ownable.sol

pragma solidity ^0.7.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

// File: contracts/digirocks.sol

pragma solidity >=0.6.0 <0.8.0;



// Inspired by Chubbies (chubbies.io)
contract Digirocks is ERC721, Ownable {
    using SafeMath for uint256;
    uint public constant MAX_DIGIROCKS = 10000;
    uint public constant MAX_FREE_DIGIROCKS = 250;
    uint public redeemedDigirocks = 0;
    bool public hasSaleStarted = false;
    mapping(address => uint) public redemptions;

    string public METADATA_PROVENANCE_HASH = "";
    
    constructor(string memory baseURI) ERC721("Digirocks","DIGIROCKS")  {
        setBaseURI(baseURI);
        redemptions[0xBF3e23afd790E34A39d2E5B465f57e0ED74b3B9A] = 39;
        redemptions[0xb432cFCa03A7ddd34F9469092316a88D01bA80Fc] = 6;
        redemptions[0x139a0975eA36cEc4C59447002A875749Ac9c460f] = 6;
        redemptions[0xB8e9ba6Ef868352579f1ACc6945e96667000BF82] = 5;
        redemptions[0x9F5c28dA8F8622D36dC0F596142d66BB1512BAb5] = 5;
        redemptions[0xC57B739aA628F821C69A42279D278B41eFc6972E] = 5;
        redemptions[0x4B0292faCb3Bf7C26DEF0B6aeb24133C6B5bd68d] = 5;
        redemptions[0xbC1eB4359ab755Af079F6EF77E3FaAc465e53EDA] = 4;
        redemptions[0x8d809b30Ce1d511c674784c4bcFCd5D28F957F5C] = 4;
        redemptions[0x876A07C532c88f778790651503DfabE159F845a2] = 4;
        redemptions[0x5f1088110EdcBa27Fc206cdcc326B413b5867361] = 4;
        redemptions[0x525bFC44292b26d1c2f0303AA447Db46d7F23056] = 3;
        redemptions[0x75259686c1C967399eDA0b4B16f16FB0990f9615] = 3;
        redemptions[0x9baB7d4E2B2443667017A0FE4E18b662d10EdDa7] = 3;
        redemptions[0x89abF6673dE7e578e3c3CDeCC4CC18c0b9aDCc70] = 3;
        redemptions[0x8C8Ddf9A1390886525866F651aD0Ef1947d10897] = 3;
        redemptions[0x9B5546050984fe69aE9cFa57538C83282A3cBce2] = 2;
        redemptions[0x217d83bbe3693365b6BD40f4Dd2019b4aA7C681B] = 2;
        redemptions[0x593e76d2a379C72F3dC7698A0a87f6Adc92b7C5A] = 2;
        redemptions[0x0985224a811E65c235DBF4a2C2117712AABe4e39] = 2;
        redemptions[0x0614e07756390441CB246c886917487840e74f7d] = 2;
        redemptions[0x3546BD99767246C358ff1497f1580C8365b25AC8] = 2;
        redemptions[0xc9BD470a494E002aECBbBf73cA5BD8a2807F296b] = 2;
        redemptions[0x42F7c5275aC4372156027d939843C9C42523DF2E] = 2;
        redemptions[0x75e4d2CD3e6652226808D2750DEbeaF2023E5dE1] = 2;
        redemptions[0xd4cF19f76addb489d079D0f60F41D6E91E7c79E1] = 2;
        redemptions[0xbbA99dfb76452780d3a8da48D6aAd5f540131Da4] = 2;
        redemptions[0x229D6a31d0CF2225837DB8C82A6c78De5cDe114d] = 2;
        redemptions[0x5540B6425bdC1dF657a3d3934019eB89781F4897] = 2;
        redemptions[0x8a22E82B7f1916aC985593C481F3EfcdE00FDd78] = 2;
        redemptions[0x10A7aDb377e67B1e6080Cdd3dda59f42aebBeFf9] = 2;
        redemptions[0xeEcd39A1F6283bEF2771C004618bb3a982FC126C] = 2;
        redemptions[0xf476Cd75BE8Fdd197AE0b466A2ec2ae44Da41897] = 2;
        redemptions[0x5c5fc4680AAfa2CeD7b5826883c1a26DcE05eC4d] = 1;
        redemptions[0x0A2A3d3C6d4f2D57D307DA3E3e99FF8122077Da5] = 1;
        redemptions[0x1e33Fa287537F185f0cB89F8ef69bBf54fE64Ec2] = 1;
        redemptions[0x2160eD383B9f1C9cF1e01926209DAF5ecC8E1E49] = 1;
        redemptions[0xCdA1a0ECd7D25B49Ecbf0EeC1f45f0B7fb59961b] = 1;
        redemptions[0x33F04Cf7fa115165aF33CEA6846AA0dbC20c318B] = 1;
        redemptions[0xa9A1bB451Ef2bAcc8377BdF74cEA001278F48347] = 1;
        redemptions[0x4B4a367C6f5018529b3bbe0BeE27C7dae043331A] = 1;
        redemptions[0x9657B94D5d0a7C58CD2c59Ac17969e754C29eC29] = 1;
        redemptions[0x268087220BEF3a1aACC85ea32D140A87e56f494F] = 1;
        redemptions[0xd078df89564Bd99c74B3076a584Eb23068072909] = 1;
        redemptions[0x361084AF8D45E07885b31fCEDCb642b9Cc7B72D7] = 1;
        redemptions[0x43286B397932eb5C7C1Ea06632600A8E3a484c87] = 1;
        redemptions[0x5d54DBAc524Eed9FE4606F65fC0f069E704323a6] = 1;
        redemptions[0x827e692C4AB6e02099D0B4792D931075134876d4] = 1;
        redemptions[0x0A4E4f47b29B5891684c2202bc771aC3a8a35D7a] = 1;
        redemptions[0xB0B7aBccD78a560955eaD86a34eae2F0B6f0199E] = 1;
        redemptions[0xA5019C1D0ceefff54bC89F07dC53126861C76AbA] = 1;
        redemptions[0xf631B11ceC7a24a1300C301e3f079F5C76faaD1B] = 1;
        redemptions[0xe3ACe06FFa96f25FD652D068cD133cBb6B1869Eb] = 1;
        redemptions[0x784b0788F00b7085B2E66aBa316a271C3d10a347] = 1;
        redemptions[0x88bADBA19b9AeC1025125060Df9afFa6Fc0ECBe0] = 1;
        redemptions[0x8A0A570195Fb73a73b550902EEfb221A4E416739] = 1;
        redemptions[0xd7F4A99f72b19d609892694d638C18E2C93De9DC] = 1;
        redemptions[0x3Bd77B00f02C8BcfF586C565E2c5e6B6c5878EC3] = 1;
        redemptions[0xe336647d97414E5613c31b321306708bE29B6E0c] = 1;
        redemptions[0x992931cB309055B105327DEe9EB7afa702442D89] = 1;
        redemptions[0xE366f493c7192a268b8f12A8bEb6F604b29e6C11] = 1;
        redemptions[0xAa66a53e01698873D22d49C69c4829190975cc32] = 1;
        redemptions[0x561d171b3f3691b122B3767CAbd5e86bE76ffdb5] = 1;
        redemptions[0x0A46570dBA491858461E1164B436e9266b3f55b5] = 1;
        redemptions[0x7Dcb39fe010A205f16ee3249F04b24d74C4f44F1] = 1;
        redemptions[0xB4B1F87A6C2C95726ca3aaF9E3a06142D78E3Ac4] = 1;
        redemptions[0x98e9de3364f73824b06fc6531C42b85e67A4A98c] = 1;
        redemptions[0xc345b043023BDeB7b034064A06E36dA51d2FC3d8] = 1;
        redemptions[0xe5845761e7773976055F2559ca54be41F09d9E88] = 1;
        redemptions[0x209af07A4B6b2D15923ffa8C3d41cDAC49BC6c4F] = 1;
        redemptions[0x9A8b253C304b897AF8147143c5D0db4635E8c9C6] = 1;
        redemptions[0x6B254f8a91E255a4FB916501F896E15522799D82] = 1;
        redemptions[0x97f4319bfEFd1394fC33E0721cBe7388C57Aa810] = 1;
        redemptions[0x311747a35Da6c4d3259B8FBfFCe770Be105B7130] = 1;
        redemptions[0x8B73704918df1E5bcfD4d0ea2a04a7B534A06F80] = 1;
        redemptions[0xddEaEC88e4a183F5aCC7d7cFd6f69e300Bb6D455] = 1;
        redemptions[0x40d6D4b08BdEB4cf37f416d0EF2b4211671Ef484] = 1;
        redemptions[0xb432005e1010492fa315b9737881e5E18925204c] = 1;
        redemptions[0x95B46b33b8d7cc0A804D93f5FdDD7efBCB1fEDAC] = 1;
        redemptions[0x241Ef80D41C220B5616A4aB9bA9B9a9Fd7A79a5f] = 1;
        redemptions[0xafc69fD946f565183d9229d75e1953dF179aD959] = 1;
        redemptions[0x38319E74CeFe77B62FeC8E7a2aB81318727f46c7] = 1;
        redemptions[0x9BA74Ba6c4FD92646985AfA5d6A8EDB4F2A38Ba5] = 1;
        redemptions[0x934cBdF4c7163eFac4B8210713c5B7c134E207E6] = 1;
        redemptions[0x3a9F45ac308CcC0a1A48b0f9e2F8Ce859A0039ea] = 1;
        redemptions[0xa42A2271EcBaB3F638595F64c8d96623E334167E] = 1;
        redemptions[0x9Fe686D6fAcBC5AE4433308B26e7c810ac43F3D4] = 1;
        redemptions[0x15296589Df4156703d25475ea9b1039030acFaeb] = 1;
        redemptions[0x38F1DfdcaF2F0d70c29D4AF6a4AA9E920efe8B18] = 1;
        redemptions[0x3140fe113a49d78830E18b64F2398544EE39F8F9] = 1;
        redemptions[0x00AEa56c78ebB54dBf1C52520c20302aAD6B7355] = 1;
        redemptions[0xB810D1238dC5E5D664eBC5d19B0Fd2C28d42968D] = 1;
        redemptions[0x73dFEd4F1269d4Ae7fA951a65b923f887513E18d] = 1;
        redemptions[0x6b401B4B53219Fb4E5Ea71D4a98cd3c75095Ee77] = 1;
        redemptions[0x5B2D192182Cc6e39B047880995B67e179B89F63e] = 1;
        redemptions[0xce97592353ACE045DFD9882c50ceF606327FBE43] = 1;
    }
    
    function tokensOfOwner(address _owner) external view returns(uint256[] memory ) {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            // Return an empty array
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index;
            for (index = 0; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }
    
    function calculatePrice() public view returns (uint256) {
        require(hasSaleStarted == true, "Sale hasn't started");
        require(totalSupply() < MAX_DIGIROCKS, "Sale has already ended");

        uint currentSupply = totalSupply();
        if (currentSupply >= 9900) {
            return 960000000000000000;        // 9900-10000: 0.96 ETH
        } else if (currentSupply >= 9500) {
            return 480000000000000000;         // 9500-9900:  0.48 ETH
        } else if (currentSupply >= 7500) {
            return 240000000000000000;         // 7500-9500:  0.24 ETH
        } else if (currentSupply >= 3500) {
            return 120000000000000000;         // 3500-7500:  0.12 ETH
        } else if (currentSupply >= 1500) {
            return 60000000000000000;          // 1500-3500:  0.06 ETH 
        } else if (currentSupply >= 500) {
            return 30000000000000000;          // 500-1500:   0.03 ETH 
        } else {
            return 15000000000000000;          // 0 - 500     0.015 ETH
        }
    }

    function calculatePriceForToken(uint _id) public view returns (uint256) {
        require(_id < MAX_DIGIROCKS, "Sale has already ended");

        if (_id >= 9900) {
            return 960000000000000000;        // 9900-10000: 0.96 ETH
        } else if (_id >= 9500) {
            return 480000000000000000;         // 9500-9900:  0.48 ETH
        } else if (_id >= 7500) {
            return 240000000000000000;         // 7500-9500:  0.24 ETH
        } else if (_id >= 3500) {
            return 120000000000000000;         // 3500-7500:  0.12 ETH
        } else if (_id >= 1500) {
            return 60000000000000000;          // 1500-3500:  0.06 ETH 
        } else if (_id >= 500) {
            return 30000000000000000;          // 500-1500:   0.03 ETH 
        } else {
            return 15000000000000000;          // 0 - 500     0.015 ETH
        }
    }
    
   function adoptDigirock(uint256 numDigirocks) public payable {
        require(numDigirocks > 0 && numDigirocks <= 20, "You can adopt minimum 1, maximum 20 Digirocks");
        require(totalSupply().add(numDigirocks) <= MAX_DIGIROCKS, "Exceeds MAX_DIGIROCKS");
        require(msg.value >= calculatePrice().mul(numDigirocks), "Ether value sent is below the price");

        for (uint i = 0; i < numDigirocks; i++) {
            uint mintIndex = totalSupply();
            _safeMint(msg.sender, mintIndex);
        }
    }
    
    // God Mode
    function setProvenanceHash(string memory _hash) public onlyOwner {
        METADATA_PROVENANCE_HASH = _hash;
    }
    
    function setBaseURI(string memory baseURI) public onlyOwner {
        _setBaseURI(baseURI);
    }
    
    function startSale() public onlyOwner {
        hasSaleStarted = true;
    }

    function pauseSale() public onlyOwner {
        hasSaleStarted = false;
    }
    
    function withdrawAll() public payable onlyOwner {
        require(payable(msg.sender).send(address(this).balance));
    }

    // Freak owners can claim a free rock
    function claimFreeDigirock(uint256 numDigirocks) public {
        require(redemptions[msg.sender] >= numDigirocks, "You can't claim that many");
        require(totalSupply().add(numDigirocks) <= MAX_DIGIROCKS, "Exceeds MAX_DIGIROCKS");
        require(redeemedDigirocks.add(numDigirocks) <= MAX_FREE_DIGIROCKS, "Exceeds MAX_FREE_DIGIROCKS");

        for (uint i = 0; i < numDigirocks; i++) {
            uint mintIndex = totalSupply();
            redemptions[msg.sender] = redemptions[msg.sender].sub(1);
            redeemedDigirocks = redeemedDigirocks.add(1);
            _safeMint(msg.sender, mintIndex);
        }
    }

    // Add the freakowner that can claim the rock
    function addClaimable(address freakowner, uint256 numDigirocks) public onlyOwner {
        require(totalSupply().add(numDigirocks) < MAX_DIGIROCKS, "Exceeds MAX_DIGIROCKS");
        require(redeemedDigirocks.add(numDigirocks) <= MAX_FREE_DIGIROCKS, "Exceeds MAX_FREE_DIGIROCKS");
        redemptions[freakowner] = numDigirocks;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_DIGIROCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FREE_DIGIROCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"METADATA_PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"freakowner","type":"address"},{"internalType":"uint256","name":"numDigirocks","type":"uint256"}],"name":"addClaimable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numDigirocks","type":"uint256"}],"name":"adoptDigirock","outputs":[],"stateMutability":"payable","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculatePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"calculatePriceForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numDigirocks","type":"uint256"}],"name":"claimFreeDigirock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemedDigirocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"redemptions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","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":"index","type":"uint256"}],"name":"tokenByIndex","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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]

60806040526000600b556000600c60006101000a81548160ff02191690831515021790555060405180602001604052806000815250600e90805190602001906200004b92919062002693565b503480156200005957600080fd5b5060405162006e7d38038062006e7d833981810160405260208110156200007f57600080fd5b8101908080516040519392919084640100000000821115620000a057600080fd5b83820191506020820185811115620000b757600080fd5b8251866001820283011164010000000082111715620000d557600080fd5b8083526020830192505050908051906020019080838360005b838110156200010b578082015181840152602081019050620000ee565b50505050905090810190601f168015620001395780820380516001836020036101000a031916815260200191505b506040525050506040518060400160405280600981526020017f44696769726f636b7300000000000000000000000000000000000000000000008152506040518060400160405280600981526020017f44494749524f434b530000000000000000000000000000000000000000000000815250620001c46301ffc9a760e01b6200246860201b60201c565b8160069080519060200190620001dc92919062002693565b508060079080519060200190620001f592919062002693565b506200020e6380ac58cd60e01b6200246860201b60201c565b62000226635b5e139f60e01b6200246860201b60201c565b6200023e63780e9d6360e01b6200246860201b60201c565b50506000620002526200257160201b60201c565b905080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35062000302816200257960201b60201c565b6027600d600073bf3e23afd790e34a39d2e5b465f57e0ed74b3b9a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506006600d600073b432cfca03a7ddd34f9469092316a88d01ba80fc73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506006600d600073139a0975ea36cec4c59447002a875749ac9c460f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506005600d600073b8e9ba6ef868352579f1acc6945e96667000bf8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506005600d6000739f5c28da8f8622d36dc0f596142d66bb1512bab573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506005600d600073c57b739aa628f821c69a42279d278b41efc6972e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506005600d6000734b0292facb3bf7c26def0b6aeb24133c6b5bd68d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506004600d600073bc1eb4359ab755af079f6ef77e3faac465e53eda73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506004600d6000738d809b30ce1d511c674784c4bcfcd5d28f957f5c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506004600d600073876a07c532c88f778790651503dfabe159f845a273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506004600d6000735f1088110edcba27fc206cdcc326b413b586736173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506003600d600073525bfc44292b26d1c2f0303aa447db46d7f2305673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506003600d60007375259686c1c967399eda0b4b16f16fb0990f961573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506003600d6000739bab7d4e2b2443667017a0fe4e18b662d10edda773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506003600d60007389abf6673de7e578e3c3cdecc4cc18c0b9adcc7073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506003600d6000738c8ddf9a1390886525866f651ad0ef1947d1089773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d6000739b5546050984fe69ae9cfa57538c83282a3cbce273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d600073217d83bbe3693365b6bd40f4dd2019b4aa7c681b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d600073593e76d2a379c72f3dc7698a0a87f6adc92b7c5a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d6000730985224a811e65c235dbf4a2c2117712aabe4e3973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d6000730614e07756390441cb246c886917487840e74f7d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d6000733546bd99767246c358ff1497f1580c8365b25ac873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d600073c9bd470a494e002aecbbbf73ca5bd8a2807f296b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d60007342f7c5275ac4372156027d939843c9c42523df2e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d60007375e4d2cd3e6652226808d2750debeaf2023e5de173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d600073d4cf19f76addb489d079d0f60f41d6e91e7c79e173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d600073bba99dfb76452780d3a8da48d6aad5f540131da473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d600073229d6a31d0cf2225837db8c82a6c78de5cde114d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d6000735540b6425bdc1df657a3d3934019eb89781f489773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d6000738a22e82b7f1916ac985593c481f3efcde00fdd7873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d60007310a7adb377e67b1e6080cdd3dda59f42aebbeff973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d600073eecd39a1f6283bef2771c004618bb3a982fc126c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002600d600073f476cd75be8fdd197ae0b466a2ec2ae44da4189773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000735c5fc4680aafa2ced7b5826883c1a26dce05ec4d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000730a2a3d3c6d4f2d57d307da3e3e99ff8122077da573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000731e33fa287537f185f0cb89f8ef69bbf54fe64ec273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000732160ed383b9f1c9cf1e01926209daf5ecc8e1e4973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073cda1a0ecd7d25b49ecbf0eec1f45f0b7fb59961b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007333f04cf7fa115165af33cea6846aa0dbc20c318b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073a9a1bb451ef2bacc8377bdf74cea001278f4834773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000734b4a367c6f5018529b3bbe0bee27c7dae043331a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000739657b94d5d0a7c58cd2c59ac17969e754c29ec2973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073268087220bef3a1aacc85ea32d140a87e56f494f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073d078df89564bd99c74b3076a584eb2306807290973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073361084af8d45e07885b31fcedcb642b9cc7b72d773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007343286b397932eb5c7c1ea06632600a8e3a484c8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000735d54dbac524eed9fe4606f65fc0f069e704323a673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073827e692c4ab6e02099d0b4792d931075134876d473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000730a4e4f47b29b5891684c2202bc771ac3a8a35d7a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073b0b7abccd78a560955ead86a34eae2f0b6f0199e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073a5019c1d0ceefff54bc89f07dc53126861c76aba73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073f631b11cec7a24a1300c301e3f079f5c76faad1b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073e3ace06ffa96f25fd652d068cd133cbb6b1869eb73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073784b0788f00b7085b2e66aba316a271c3d10a34773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007388badba19b9aec1025125060df9affa6fc0ecbe073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000738a0a570195fb73a73b550902eefb221a4e41673973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073d7f4a99f72b19d609892694d638c18e2c93de9dc73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000733bd77b00f02c8bcff586c565e2c5e6b6c5878ec373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073e336647d97414e5613c31b321306708be29b6e0c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073992931cb309055b105327dee9eb7afa702442d8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073e366f493c7192a268b8f12a8beb6f604b29e6c1173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073aa66a53e01698873d22d49c69c4829190975cc3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073561d171b3f3691b122b3767cabd5e86be76ffdb573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000730a46570dba491858461e1164b436e9266b3f55b573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000737dcb39fe010a205f16ee3249f04b24d74c4f44f173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073b4b1f87a6c2c95726ca3aaf9e3a06142d78e3ac473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007398e9de3364f73824b06fc6531c42b85e67a4a98c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073c345b043023bdeb7b034064a06e36da51d2fc3d873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073e5845761e7773976055f2559ca54be41f09d9e8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073209af07a4b6b2d15923ffa8c3d41cdac49bc6c4f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000739a8b253c304b897af8147143c5d0db4635e8c9c673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000736b254f8a91e255a4fb916501f896e15522799d8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007397f4319bfefd1394fc33e0721cbe7388c57aa81073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073311747a35da6c4d3259b8fbffce770be105b713073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000738b73704918df1e5bcfd4d0ea2a04a7b534a06f8073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073ddeaec88e4a183f5acc7d7cfd6f69e300bb6d45573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007340d6d4b08bdeb4cf37f416d0ef2b4211671ef48473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073b432005e1010492fa315b9737881e5e18925204c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007395b46b33b8d7cc0a804d93f5fddd7efbcb1fedac73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073241ef80d41c220b5616a4ab9ba9b9a9fd7a79a5f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073afc69fd946f565183d9229d75e1953df179ad95973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007338319e74cefe77b62fec8e7a2ab81318727f46c773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000739ba74ba6c4fd92646985afa5d6a8edb4f2a38ba573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073934cbdf4c7163efac4b8210713c5b7c134e207e673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000733a9f45ac308ccc0a1a48b0f9e2f8ce859a0039ea73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073a42a2271ecbab3f638595f64c8d96623e334167e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000739fe686d6facbc5ae4433308b26e7c810ac43f3d473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007315296589df4156703d25475ea9b1039030acfaeb73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007338f1dfdcaf2f0d70c29d4af6a4aa9e920efe8b1873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000733140fe113a49d78830e18b64f2398544ee39f8f973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600072aea56c78ebb54dbf1c52520c20302aad6b735573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073b810d1238dc5e5d664ebc5d19b0fd2c28d42968d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d60007373dfed4f1269d4ae7fa951a65b923f887513e18d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000736b401b4b53219fb4e5ea71d4a98cd3c75095ee7773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d6000735b2d192182cc6e39b047880995b67e179b89f63e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600d600073ce97592353ace045dfd9882c50cef606327fbe4373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505062002749565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562002505576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600033905090565b620025896200257160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620025af6200264d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462002639576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6200264a816200267760201b60201c565b50565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b80600990805190602001906200268f92919062002693565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620026cb576000855562002717565b82601f10620026e657805160ff191683800117855562002717565b8280016001018555821562002717579182015b8281111562002716578251825591602001919060010190620026f9565b5b5090506200272691906200272a565b5090565b5b80821115620027455760008160009055506001016200272b565b5090565b61472480620027596000396000f3fe60806040526004361061021a5760003560e01c8063715018a611610123578063a73d0983116100ab578063d348b4091161006f578063d348b40914610e89578063e985e9c514610eb4578063f0c9dc6014610f3b578063f2fde38b14610fcb578063f95853621461101c5761021a565b8063a73d098314610c56578063ab97b79914610c81578063b66a0e5d14610cac578063b88d4fde14610cc3578063c87b56dd14610dd55761021a565b80638e88b00c116100f25780638e88b00c14610a6e57806395d89b4114610aa95780639bc3f26914610b39578063a22cb46514610b9e578063a47a65d814610bfb5761021a565b8063715018a6146109665780638462151c1461097d578063853828b614610a235780638da5cb5b14610a2d5761021a565b80632f745c59116101a657806355f804b31161017557806355f804b3146106f55780636352211e146107bd5780636c0360eb146108225780636fd9537f146108b257806370a08231146109015761021a565b80632f745c59146105a557806342842e0e146106145780634f6ccce71461068f57806355367ba9146106de5761021a565b806310969523116101ed57806310969523146103df57806318160ddd146104a75780631c8b232d146104d25780631edde58b146104ff57806323b872dd1461052a5761021a565b806301ffc9a71461021f57806306fdde031461028f578063081812fc1461031f578063095ea7b314610384575b600080fd5b34801561022b57600080fd5b506102776004803603602081101561024257600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061104a565b60405180821515815260200191505060405180910390f35b34801561029b57600080fd5b506102a46110b1565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102e45780820151818401526020810190506102c9565b50505050905090810190601f1680156103115780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561032b57600080fd5b506103586004803603602081101561034257600080fd5b8101908080359060200190929190505050611153565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561039057600080fd5b506103dd600480360360408110156103a757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111ee565b005b3480156103eb57600080fd5b506104a56004803603602081101561040257600080fd5b810190808035906020019064010000000081111561041f57600080fd5b82018360208201111561043157600080fd5b8035906020019184600183028401116401000000008311171561045357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611332565b005b3480156104b357600080fd5b506104bc6113fb565b6040518082815260200191505060405180910390f35b3480156104de57600080fd5b506104e761140c565b60405180821515815260200191505060405180910390f35b34801561050b57600080fd5b5061051461141f565b6040518082815260200191505060405180910390f35b34801561053657600080fd5b506105a36004803603606081101561054d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611425565b005b3480156105b157600080fd5b506105fe600480360360408110156105c857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061149b565b6040518082815260200191505060405180910390f35b34801561062057600080fd5b5061068d6004803603606081101561063757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506114f6565b005b34801561069b57600080fd5b506106c8600480360360208110156106b257600080fd5b8101908080359060200190929190505050611516565b6040518082815260200191505060405180910390f35b3480156106ea57600080fd5b506106f3611539565b005b34801561070157600080fd5b506107bb6004803603602081101561071857600080fd5b810190808035906020019064010000000081111561073557600080fd5b82018360208201111561074757600080fd5b8035906020019184600183028401116401000000008311171561076957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611605565b005b3480156107c957600080fd5b506107f6600480360360208110156107e057600080fd5b81019080803590602001909291905050506116c0565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561082e57600080fd5b506108376116f7565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561087757808201518184015260208101905061085c565b50505050905090810190601f1680156108a45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156108be57600080fd5b506108eb600480360360208110156108d557600080fd5b8101908080359060200190929190505050611799565b6040518082815260200191505060405180910390f35b34801561090d57600080fd5b506109506004803603602081101561092457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118b6565b6040518082815260200191505060405180910390f35b34801561097257600080fd5b5061097b61198b565b005b34801561098957600080fd5b506109cc600480360360208110156109a057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611afb565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610a0f5780820151818401526020810190506109f4565b505050509050019250505060405180910390f35b610a2b611bf4565b005b348015610a3957600080fd5b50610a42611ce3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610a7a57600080fd5b50610aa760048036036020811015610a9157600080fd5b8101908080359060200190929190505050611d0d565b005b348015610ab557600080fd5b50610abe611fc3565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610afe578082015181840152602081019050610ae3565b50505050905090810190601f168015610b2b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610b4557600080fd5b50610b8860048036036020811015610b5c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612065565b6040518082815260200191505060405180910390f35b348015610baa57600080fd5b50610bf960048036036040811015610bc157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080351515906020019092919050505061207d565b005b348015610c0757600080fd5b50610c5460048036036040811015610c1e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612233565b005b348015610c6257600080fd5b50610c6b612445565b6040518082815260200191505060405180910390f35b348015610c8d57600080fd5b50610c9661244a565b6040518082815260200191505060405180910390f35b348015610cb857600080fd5b50610cc1612450565b005b348015610ccf57600080fd5b50610dd360048036036080811015610ce657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610d4d57600080fd5b820183602082011115610d5f57600080fd5b80359060200191846001830284011164010000000083111715610d8157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061251c565b005b348015610de157600080fd5b50610e0e60048036036020811015610df857600080fd5b8101908080359060200190929190505050612594565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610e4e578082015181840152602081019050610e33565b50505050905090810190601f168015610e7b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610e9557600080fd5b50610e9e612865565b6040518082815260200191505060405180910390f35b348015610ec057600080fd5b50610f2360048036036040811015610ed757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612a23565b60405180821515815260200191505060405180910390f35b348015610f4757600080fd5b50610f50612ab7565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610f90578082015181840152602081019050610f75565b50505050905090810190601f168015610fbd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610fd757600080fd5b5061101a60048036036020811015610fee57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612b55565b005b6110486004803603602081101561103257600080fd5b8101908080359060200190929190505050612d4a565b005b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111495780601f1061111e57610100808354040283529160200191611149565b820191906000526020600020905b81548152906001019060200180831161112c57829003601f168201915b5050505050905090565b600061115e82612ee6565b6111b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806145ec602c913960400191505060405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006111f9826116c0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611280576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806146706021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661129f612f03565b73ffffffffffffffffffffffffffffffffffffffff1614806112ce57506112cd816112c8612f03565b612a23565b5b611323576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260388152602001806144fb6038913960400191505060405180910390fd5b61132d8383612f0b565b505050565b61133a612f03565b73ffffffffffffffffffffffffffffffffffffffff16611358611ce3565b73ffffffffffffffffffffffffffffffffffffffff16146113e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600e90805190602001906113f792919061435f565b5050565b60006114076002612fc4565b905090565b600c60009054906101000a900460ff1681565b600b5481565b611436611430612f03565b82612fd9565b61148b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806146916031913960400191505060405180910390fd5b6114968383836130cd565b505050565b60006114ee82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061331090919063ffffffff16565b905092915050565b6115118383836040518060200160405280600081525061251c565b505050565b60008061152d83600261332a90919063ffffffff16565b50905080915050919050565b611541612f03565b73ffffffffffffffffffffffffffffffffffffffff1661155f611ce3565b73ffffffffffffffffffffffffffffffffffffffff16146115e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600c60006101000a81548160ff021916908315150217905550565b61160d612f03565b73ffffffffffffffffffffffffffffffffffffffff1661162b611ce3565b73ffffffffffffffffffffffffffffffffffffffff16146116b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6116bd81613356565b50565b60006116f08260405180606001604052806029815260200161455d6029913960026133709092919063ffffffff16565b9050919050565b606060098054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561178f5780601f106117645761010080835404028352916020019161178f565b820191906000526020600020905b81548152906001019060200180831161177257829003601f168201915b5050505050905090565b60006127108210611812576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f53616c652068617320616c726561647920656e6465640000000000000000000081525060200191505060405180910390fd5b6126ac821061182b57670d529ae9e860000090506118b1565b61251c8210611844576706a94d74f430000090506118b1565b611d4c821061185d57670354a6ba7a18000090506118b1565b610dac8210611876576701aa535d3d0c000090506118b1565b6105dc821061188e5766d529ae9e86000090506118b1565b6101f482106118a657666a94d74f43000090506118b1565b66354a6ba7a1800090505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561193d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180614533602a913960400191505060405180910390fd5b611984600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061338f565b9050919050565b611993612f03565b73ffffffffffffffffffffffffffffffffffffffff166119b1611ce3565b73ffffffffffffffffffffffffffffffffffffffff1614611a3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60606000611b08836118b6565b90506000811415611b6357600067ffffffffffffffff81118015611b2b57600080fd5b50604051908082528060200260200182016040528015611b5a5781602001602082028036833780820191505090505b50915050611bef565b60008167ffffffffffffffff81118015611b7c57600080fd5b50604051908082528060200260200182016040528015611bab5781602001602082028036833780820191505090505b50905060005b82811015611be857611bc3858261149b565b828281518110611bcf57fe5b6020026020010181815250508080600101915050611bb1565b8193505050505b919050565b611bfc612f03565b73ffffffffffffffffffffffffffffffffffffffff16611c1a611ce3565b73ffffffffffffffffffffffffffffffffffffffff1614611ca3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050611ce157600080fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b80600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611dc2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f596f752063616e277420636c61696d2074686174206d616e790000000000000081525060200191505060405180910390fd5b612710611ddf82611dd16113fb565b6133a490919063ffffffff16565b1115611e53576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f45786365656473204d41585f44494749524f434b53000000000000000000000081525060200191505060405180910390fd5b60fa611e6a82600b546133a490919063ffffffff16565b1115611ede576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f45786365656473204d41585f465245455f44494749524f434b5300000000000081525060200191505060405180910390fd5b60005b81811015611fbf576000611ef36113fb565b9050611f486001600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461342c90919063ffffffff16565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611fa16001600b546133a490919063ffffffff16565b600b81905550611fb133826134af565b508080600101915050611ee1565b5050565b606060078054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561205b5780601f106120305761010080835404028352916020019161205b565b820191906000526020600020905b81548152906001019060200180831161203e57829003601f168201915b5050505050905090565b600d6020528060005260406000206000915090505481565b612085612f03565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612126576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b8060056000612133612f03565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166121e0612f03565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b61223b612f03565b73ffffffffffffffffffffffffffffffffffffffff16612259611ce3565b73ffffffffffffffffffffffffffffffffffffffff16146122e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6127106122ff826122f16113fb565b6133a490919063ffffffff16565b10612372576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f45786365656473204d41585f44494749524f434b53000000000000000000000081525060200191505060405180910390fd5b60fa61238982600b546133a490919063ffffffff16565b11156123fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f45786365656473204d41585f465245455f44494749524f434b5300000000000081525060200191505060405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b60fa81565b61271081565b612458612f03565b73ffffffffffffffffffffffffffffffffffffffff16612476611ce3565b73ffffffffffffffffffffffffffffffffffffffff16146124ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6001600c60006101000a81548160ff021916908315150217905550565b61252d612527612f03565b83612fd9565b612582576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806146916031913960400191505060405180910390fd5b61258e848484846134cd565b50505050565b606061259f82612ee6565b6125f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614641602f913960400191505060405180910390fd5b6000600860008481526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561269d5780601f106126725761010080835404028352916020019161269d565b820191906000526020600020905b81548152906001019060200180831161268057829003601f168201915b5050505050905060006126ae6116f7565b90506000815114156126c4578192505050612860565b6000825111156127955780826040516020018083805190602001908083835b6020831061270657805182526020820191506020810190506020830392506126e3565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b602083106127575780518252602082019150602081019050602083039250612734565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050612860565b8061279f8561353f565b6040516020018083805190602001908083835b602083106127d557805182526020820191506020810190506020830392506127b2565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b602083106128265780518252602082019150602081019050602083039250612803565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052925050505b919050565b600060011515600c60009054906101000a900460ff161515146128f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53616c65206861736e277420737461727465640000000000000000000000000081525060200191505060405180910390fd5b6127106128fb6113fb565b1061296e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f53616c652068617320616c726561647920656e6465640000000000000000000081525060200191505060405180910390fd5b60006129786113fb565b90506126ac811061299457670d529ae9e8600000915050612a20565b61251c81106129ae576706a94d74f4300000915050612a20565b611d4c81106129c857670354a6ba7a180000915050612a20565b610dac81106129e2576701aa535d3d0c0000915050612a20565b6105dc81106129fb5766d529ae9e860000915050612a20565b6101f48110612a1457666a94d74f430000915050612a20565b66354a6ba7a180009150505b90565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612b4d5780601f10612b2257610100808354040283529160200191612b4d565b820191906000526020600020905b815481529060010190602001808311612b3057829003601f168201915b505050505081565b612b5d612f03565b73ffffffffffffffffffffffffffffffffffffffff16612b7b611ce3565b73ffffffffffffffffffffffffffffffffffffffff1614612c04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061445f6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600081118015612d5b575060148111155b612db0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d8152602001806146c2602d913960400191505060405180910390fd5b612710612dcd82612dbf6113fb565b6133a490919063ffffffff16565b1115612e41576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f45786365656473204d41585f44494749524f434b53000000000000000000000081525060200191505060405180910390fd5b612e5b81612e4d612865565b61368690919063ffffffff16565b341015612eb3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806145866023913960400191505060405180910390fd5b60005b81811015612ee2576000612ec86113fb565b9050612ed433826134af565b508080600101915050612eb6565b5050565b6000612efc82600261370c90919063ffffffff16565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612f7e836116c0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612fd282600001613726565b9050919050565b6000612fe482612ee6565b613039576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806144cf602c913960400191505060405180910390fd5b6000613044836116c0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806130b357508373ffffffffffffffffffffffffffffffffffffffff1661309b84611153565b73ffffffffffffffffffffffffffffffffffffffff16145b806130c457506130c38185612a23565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166130ed826116c0565b73ffffffffffffffffffffffffffffffffffffffff1614613159576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806146186029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156131df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806144856024913960400191505060405180910390fd5b6131ea838383613737565b6131f5600082612f0b565b61324681600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061373c90919063ffffffff16565b5061329881600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061375690919063ffffffff16565b506132af818360026137709092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061331f83600001836137a5565b60001c905092915050565b60008060008061333d8660000186613828565b915091508160001c8160001c9350935050509250929050565b806009908051906020019061336c92919061435f565b5050565b6000613383846000018460001b846138c1565b60001c90509392505050565b600061339d826000016139b7565b9050919050565b600080828401905083811015613422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000828211156134a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b6134c98282604051806020016040528060008152506139c8565b5050565b6134d88484846130cd565b6134e484848484613a39565b613539576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603281526020018061442d6032913960400191505060405180910390fd5b50505050565b60606000821415613587576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613681565b600082905060005b600082146135b1578080600101915050600a82816135a957fe5b04915061358f565b60008167ffffffffffffffff811180156135ca57600080fd5b506040519080825280601f01601f1916602001820160405280156135fd5781602001600182028036833780820191505090505b50905060006001830390508593505b6000841461367957600a848161361e57fe5b0660300160f81b8282806001900393508151811061363857fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a848161367157fe5b04935061360c565b819450505050505b919050565b6000808314156136995760009050613706565b60008284029050828482816136aa57fe5b0414613701576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806145cb6021913960400191505060405180910390fd5b809150505b92915050565b600061371e836000018360001b613c52565b905092915050565b600081600001805490509050919050565b505050565b600061374e836000018360001b613c75565b905092915050565b6000613768836000018360001b613d5d565b905092915050565b600061379c846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b613dcd565b90509392505050565b600081836000018054905011613806576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061440b6022913960400191505060405180910390fd5b82600001828154811061381557fe5b9060005260206000200154905092915050565b6000808284600001805490501161388a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806145a96022913960400191505060405180910390fd5b600084600001848154811061389b57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390613988576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561394d578082015181840152602081019050613932565b50505050905090810190601f16801561397a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061399b57fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b6139d28383613ea9565b6139df6000848484613a39565b613a34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603281526020018061442d6032913960400191505060405180910390fd5b505050565b6000613a5a8473ffffffffffffffffffffffffffffffffffffffff1661409d565b613a675760019050613c4a565b6000613bd163150b7a0260e01b613a7c612f03565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613b00578082015181840152602081019050613ae5565b50505050905090810190601f168015613b2d5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405180606001604052806032815260200161442d603291398773ffffffffffffffffffffffffffffffffffffffff166140b09092919063ffffffff16565b90506000818060200190516020811015613bea57600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600080836001016000848152602001908152602001600020541415905092915050565b60008083600101600084815260200190815260200160002054905060008114613d515760006001820390506000600186600001805490500390506000866000018281548110613cc057fe5b9060005260206000200154905080876000018481548110613cdd57fe5b9060005260206000200181905550600183018760010160008381526020019081526020016000208190555086600001805480613d1557fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050613d57565b60009150505b92915050565b6000613d6983836140c8565b613dc2578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613dc7565b600090505b92915050565b6000808460010160008581526020019081526020016000205490506000811415613e7457846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050613ea2565b82856000016001830381548110613e8757fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613f4c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b613f5581612ee6565b15613fc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b613fd460008383613737565b61402581600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061375690919063ffffffff16565b5061403c818360026137709092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b60606140bf84846000856140eb565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b606082471015614146576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806144a96026913960400191505060405180910390fd5b61414f8561409d565b6141c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061421057805182526020820191506020810190506020830392506141ed565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614272576040519150601f19603f3d011682016040523d82523d6000602084013e614277565b606091505b5091509150614287828286614293565b92505050949350505050565b606083156142a357829050614358565b6000835111156142b65782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561431d578082015181840152602081019050614302565b50505050905090810190601f16801561434a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928261439557600085556143dc565b82601f106143ae57805160ff19168380011785556143dc565b828001600101855582156143dc579182015b828111156143db5782518255916020019190600101906143c0565b5b5090506143e991906143ed565b5090565b5b808211156144065760008160009055506001016143ee565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e45746865722076616c75652073656e742069732062656c6f7720746865207072696365456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564596f752063616e2061646f7074206d696e696d756d20312c206d6178696d756d2032302044696769726f636b73a2646970667358221220634f2798129bdc2c3b920aba2446810415e25cdb3adb19ca101dae0e8c28cea464736f6c634300070600330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d586d317238316937434379786a70767278416d387a39697856314675653339534571334236596b52435158632f000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061021a5760003560e01c8063715018a611610123578063a73d0983116100ab578063d348b4091161006f578063d348b40914610e89578063e985e9c514610eb4578063f0c9dc6014610f3b578063f2fde38b14610fcb578063f95853621461101c5761021a565b8063a73d098314610c56578063ab97b79914610c81578063b66a0e5d14610cac578063b88d4fde14610cc3578063c87b56dd14610dd55761021a565b80638e88b00c116100f25780638e88b00c14610a6e57806395d89b4114610aa95780639bc3f26914610b39578063a22cb46514610b9e578063a47a65d814610bfb5761021a565b8063715018a6146109665780638462151c1461097d578063853828b614610a235780638da5cb5b14610a2d5761021a565b80632f745c59116101a657806355f804b31161017557806355f804b3146106f55780636352211e146107bd5780636c0360eb146108225780636fd9537f146108b257806370a08231146109015761021a565b80632f745c59146105a557806342842e0e146106145780634f6ccce71461068f57806355367ba9146106de5761021a565b806310969523116101ed57806310969523146103df57806318160ddd146104a75780631c8b232d146104d25780631edde58b146104ff57806323b872dd1461052a5761021a565b806301ffc9a71461021f57806306fdde031461028f578063081812fc1461031f578063095ea7b314610384575b600080fd5b34801561022b57600080fd5b506102776004803603602081101561024257600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061104a565b60405180821515815260200191505060405180910390f35b34801561029b57600080fd5b506102a46110b1565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102e45780820151818401526020810190506102c9565b50505050905090810190601f1680156103115780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561032b57600080fd5b506103586004803603602081101561034257600080fd5b8101908080359060200190929190505050611153565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561039057600080fd5b506103dd600480360360408110156103a757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111ee565b005b3480156103eb57600080fd5b506104a56004803603602081101561040257600080fd5b810190808035906020019064010000000081111561041f57600080fd5b82018360208201111561043157600080fd5b8035906020019184600183028401116401000000008311171561045357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611332565b005b3480156104b357600080fd5b506104bc6113fb565b6040518082815260200191505060405180910390f35b3480156104de57600080fd5b506104e761140c565b60405180821515815260200191505060405180910390f35b34801561050b57600080fd5b5061051461141f565b6040518082815260200191505060405180910390f35b34801561053657600080fd5b506105a36004803603606081101561054d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611425565b005b3480156105b157600080fd5b506105fe600480360360408110156105c857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061149b565b6040518082815260200191505060405180910390f35b34801561062057600080fd5b5061068d6004803603606081101561063757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506114f6565b005b34801561069b57600080fd5b506106c8600480360360208110156106b257600080fd5b8101908080359060200190929190505050611516565b6040518082815260200191505060405180910390f35b3480156106ea57600080fd5b506106f3611539565b005b34801561070157600080fd5b506107bb6004803603602081101561071857600080fd5b810190808035906020019064010000000081111561073557600080fd5b82018360208201111561074757600080fd5b8035906020019184600183028401116401000000008311171561076957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611605565b005b3480156107c957600080fd5b506107f6600480360360208110156107e057600080fd5b81019080803590602001909291905050506116c0565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561082e57600080fd5b506108376116f7565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561087757808201518184015260208101905061085c565b50505050905090810190601f1680156108a45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156108be57600080fd5b506108eb600480360360208110156108d557600080fd5b8101908080359060200190929190505050611799565b6040518082815260200191505060405180910390f35b34801561090d57600080fd5b506109506004803603602081101561092457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118b6565b6040518082815260200191505060405180910390f35b34801561097257600080fd5b5061097b61198b565b005b34801561098957600080fd5b506109cc600480360360208110156109a057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611afb565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610a0f5780820151818401526020810190506109f4565b505050509050019250505060405180910390f35b610a2b611bf4565b005b348015610a3957600080fd5b50610a42611ce3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610a7a57600080fd5b50610aa760048036036020811015610a9157600080fd5b8101908080359060200190929190505050611d0d565b005b348015610ab557600080fd5b50610abe611fc3565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610afe578082015181840152602081019050610ae3565b50505050905090810190601f168015610b2b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610b4557600080fd5b50610b8860048036036020811015610b5c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612065565b6040518082815260200191505060405180910390f35b348015610baa57600080fd5b50610bf960048036036040811015610bc157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080351515906020019092919050505061207d565b005b348015610c0757600080fd5b50610c5460048036036040811015610c1e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612233565b005b348015610c6257600080fd5b50610c6b612445565b6040518082815260200191505060405180910390f35b348015610c8d57600080fd5b50610c9661244a565b6040518082815260200191505060405180910390f35b348015610cb857600080fd5b50610cc1612450565b005b348015610ccf57600080fd5b50610dd360048036036080811015610ce657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610d4d57600080fd5b820183602082011115610d5f57600080fd5b80359060200191846001830284011164010000000083111715610d8157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061251c565b005b348015610de157600080fd5b50610e0e60048036036020811015610df857600080fd5b8101908080359060200190929190505050612594565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610e4e578082015181840152602081019050610e33565b50505050905090810190601f168015610e7b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610e9557600080fd5b50610e9e612865565b6040518082815260200191505060405180910390f35b348015610ec057600080fd5b50610f2360048036036040811015610ed757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612a23565b60405180821515815260200191505060405180910390f35b348015610f4757600080fd5b50610f50612ab7565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610f90578082015181840152602081019050610f75565b50505050905090810190601f168015610fbd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610fd757600080fd5b5061101a60048036036020811015610fee57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612b55565b005b6110486004803603602081101561103257600080fd5b8101908080359060200190929190505050612d4a565b005b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111495780601f1061111e57610100808354040283529160200191611149565b820191906000526020600020905b81548152906001019060200180831161112c57829003601f168201915b5050505050905090565b600061115e82612ee6565b6111b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806145ec602c913960400191505060405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006111f9826116c0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611280576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806146706021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661129f612f03565b73ffffffffffffffffffffffffffffffffffffffff1614806112ce57506112cd816112c8612f03565b612a23565b5b611323576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260388152602001806144fb6038913960400191505060405180910390fd5b61132d8383612f0b565b505050565b61133a612f03565b73ffffffffffffffffffffffffffffffffffffffff16611358611ce3565b73ffffffffffffffffffffffffffffffffffffffff16146113e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600e90805190602001906113f792919061435f565b5050565b60006114076002612fc4565b905090565b600c60009054906101000a900460ff1681565b600b5481565b611436611430612f03565b82612fd9565b61148b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806146916031913960400191505060405180910390fd5b6114968383836130cd565b505050565b60006114ee82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061331090919063ffffffff16565b905092915050565b6115118383836040518060200160405280600081525061251c565b505050565b60008061152d83600261332a90919063ffffffff16565b50905080915050919050565b611541612f03565b73ffffffffffffffffffffffffffffffffffffffff1661155f611ce3565b73ffffffffffffffffffffffffffffffffffffffff16146115e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600c60006101000a81548160ff021916908315150217905550565b61160d612f03565b73ffffffffffffffffffffffffffffffffffffffff1661162b611ce3565b73ffffffffffffffffffffffffffffffffffffffff16146116b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6116bd81613356565b50565b60006116f08260405180606001604052806029815260200161455d6029913960026133709092919063ffffffff16565b9050919050565b606060098054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561178f5780601f106117645761010080835404028352916020019161178f565b820191906000526020600020905b81548152906001019060200180831161177257829003601f168201915b5050505050905090565b60006127108210611812576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f53616c652068617320616c726561647920656e6465640000000000000000000081525060200191505060405180910390fd5b6126ac821061182b57670d529ae9e860000090506118b1565b61251c8210611844576706a94d74f430000090506118b1565b611d4c821061185d57670354a6ba7a18000090506118b1565b610dac8210611876576701aa535d3d0c000090506118b1565b6105dc821061188e5766d529ae9e86000090506118b1565b6101f482106118a657666a94d74f43000090506118b1565b66354a6ba7a1800090505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561193d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180614533602a913960400191505060405180910390fd5b611984600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061338f565b9050919050565b611993612f03565b73ffffffffffffffffffffffffffffffffffffffff166119b1611ce3565b73ffffffffffffffffffffffffffffffffffffffff1614611a3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60606000611b08836118b6565b90506000811415611b6357600067ffffffffffffffff81118015611b2b57600080fd5b50604051908082528060200260200182016040528015611b5a5781602001602082028036833780820191505090505b50915050611bef565b60008167ffffffffffffffff81118015611b7c57600080fd5b50604051908082528060200260200182016040528015611bab5781602001602082028036833780820191505090505b50905060005b82811015611be857611bc3858261149b565b828281518110611bcf57fe5b6020026020010181815250508080600101915050611bb1565b8193505050505b919050565b611bfc612f03565b73ffffffffffffffffffffffffffffffffffffffff16611c1a611ce3565b73ffffffffffffffffffffffffffffffffffffffff1614611ca3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050611ce157600080fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b80600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611dc2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f596f752063616e277420636c61696d2074686174206d616e790000000000000081525060200191505060405180910390fd5b612710611ddf82611dd16113fb565b6133a490919063ffffffff16565b1115611e53576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f45786365656473204d41585f44494749524f434b53000000000000000000000081525060200191505060405180910390fd5b60fa611e6a82600b546133a490919063ffffffff16565b1115611ede576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f45786365656473204d41585f465245455f44494749524f434b5300000000000081525060200191505060405180910390fd5b60005b81811015611fbf576000611ef36113fb565b9050611f486001600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461342c90919063ffffffff16565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611fa16001600b546133a490919063ffffffff16565b600b81905550611fb133826134af565b508080600101915050611ee1565b5050565b606060078054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561205b5780601f106120305761010080835404028352916020019161205b565b820191906000526020600020905b81548152906001019060200180831161203e57829003601f168201915b5050505050905090565b600d6020528060005260406000206000915090505481565b612085612f03565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612126576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b8060056000612133612f03565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166121e0612f03565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b61223b612f03565b73ffffffffffffffffffffffffffffffffffffffff16612259611ce3565b73ffffffffffffffffffffffffffffffffffffffff16146122e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6127106122ff826122f16113fb565b6133a490919063ffffffff16565b10612372576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f45786365656473204d41585f44494749524f434b53000000000000000000000081525060200191505060405180910390fd5b60fa61238982600b546133a490919063ffffffff16565b11156123fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f45786365656473204d41585f465245455f44494749524f434b5300000000000081525060200191505060405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b60fa81565b61271081565b612458612f03565b73ffffffffffffffffffffffffffffffffffffffff16612476611ce3565b73ffffffffffffffffffffffffffffffffffffffff16146124ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6001600c60006101000a81548160ff021916908315150217905550565b61252d612527612f03565b83612fd9565b612582576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806146916031913960400191505060405180910390fd5b61258e848484846134cd565b50505050565b606061259f82612ee6565b6125f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614641602f913960400191505060405180910390fd5b6000600860008481526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561269d5780601f106126725761010080835404028352916020019161269d565b820191906000526020600020905b81548152906001019060200180831161268057829003601f168201915b5050505050905060006126ae6116f7565b90506000815114156126c4578192505050612860565b6000825111156127955780826040516020018083805190602001908083835b6020831061270657805182526020820191506020810190506020830392506126e3565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b602083106127575780518252602082019150602081019050602083039250612734565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050612860565b8061279f8561353f565b6040516020018083805190602001908083835b602083106127d557805182526020820191506020810190506020830392506127b2565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b602083106128265780518252602082019150602081019050602083039250612803565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052925050505b919050565b600060011515600c60009054906101000a900460ff161515146128f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53616c65206861736e277420737461727465640000000000000000000000000081525060200191505060405180910390fd5b6127106128fb6113fb565b1061296e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f53616c652068617320616c726561647920656e6465640000000000000000000081525060200191505060405180910390fd5b60006129786113fb565b90506126ac811061299457670d529ae9e8600000915050612a20565b61251c81106129ae576706a94d74f4300000915050612a20565b611d4c81106129c857670354a6ba7a180000915050612a20565b610dac81106129e2576701aa535d3d0c0000915050612a20565b6105dc81106129fb5766d529ae9e860000915050612a20565b6101f48110612a1457666a94d74f430000915050612a20565b66354a6ba7a180009150505b90565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612b4d5780601f10612b2257610100808354040283529160200191612b4d565b820191906000526020600020905b815481529060010190602001808311612b3057829003601f168201915b505050505081565b612b5d612f03565b73ffffffffffffffffffffffffffffffffffffffff16612b7b611ce3565b73ffffffffffffffffffffffffffffffffffffffff1614612c04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061445f6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600081118015612d5b575060148111155b612db0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d8152602001806146c2602d913960400191505060405180910390fd5b612710612dcd82612dbf6113fb565b6133a490919063ffffffff16565b1115612e41576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f45786365656473204d41585f44494749524f434b53000000000000000000000081525060200191505060405180910390fd5b612e5b81612e4d612865565b61368690919063ffffffff16565b341015612eb3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806145866023913960400191505060405180910390fd5b60005b81811015612ee2576000612ec86113fb565b9050612ed433826134af565b508080600101915050612eb6565b5050565b6000612efc82600261370c90919063ffffffff16565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612f7e836116c0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612fd282600001613726565b9050919050565b6000612fe482612ee6565b613039576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806144cf602c913960400191505060405180910390fd5b6000613044836116c0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806130b357508373ffffffffffffffffffffffffffffffffffffffff1661309b84611153565b73ffffffffffffffffffffffffffffffffffffffff16145b806130c457506130c38185612a23565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166130ed826116c0565b73ffffffffffffffffffffffffffffffffffffffff1614613159576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806146186029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156131df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806144856024913960400191505060405180910390fd5b6131ea838383613737565b6131f5600082612f0b565b61324681600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061373c90919063ffffffff16565b5061329881600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061375690919063ffffffff16565b506132af818360026137709092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061331f83600001836137a5565b60001c905092915050565b60008060008061333d8660000186613828565b915091508160001c8160001c9350935050509250929050565b806009908051906020019061336c92919061435f565b5050565b6000613383846000018460001b846138c1565b60001c90509392505050565b600061339d826000016139b7565b9050919050565b600080828401905083811015613422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000828211156134a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b6134c98282604051806020016040528060008152506139c8565b5050565b6134d88484846130cd565b6134e484848484613a39565b613539576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603281526020018061442d6032913960400191505060405180910390fd5b50505050565b60606000821415613587576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613681565b600082905060005b600082146135b1578080600101915050600a82816135a957fe5b04915061358f565b60008167ffffffffffffffff811180156135ca57600080fd5b506040519080825280601f01601f1916602001820160405280156135fd5781602001600182028036833780820191505090505b50905060006001830390508593505b6000841461367957600a848161361e57fe5b0660300160f81b8282806001900393508151811061363857fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a848161367157fe5b04935061360c565b819450505050505b919050565b6000808314156136995760009050613706565b60008284029050828482816136aa57fe5b0414613701576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806145cb6021913960400191505060405180910390fd5b809150505b92915050565b600061371e836000018360001b613c52565b905092915050565b600081600001805490509050919050565b505050565b600061374e836000018360001b613c75565b905092915050565b6000613768836000018360001b613d5d565b905092915050565b600061379c846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b613dcd565b90509392505050565b600081836000018054905011613806576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061440b6022913960400191505060405180910390fd5b82600001828154811061381557fe5b9060005260206000200154905092915050565b6000808284600001805490501161388a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806145a96022913960400191505060405180910390fd5b600084600001848154811061389b57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390613988576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561394d578082015181840152602081019050613932565b50505050905090810190601f16801561397a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061399b57fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b6139d28383613ea9565b6139df6000848484613a39565b613a34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603281526020018061442d6032913960400191505060405180910390fd5b505050565b6000613a5a8473ffffffffffffffffffffffffffffffffffffffff1661409d565b613a675760019050613c4a565b6000613bd163150b7a0260e01b613a7c612f03565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613b00578082015181840152602081019050613ae5565b50505050905090810190601f168015613b2d5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405180606001604052806032815260200161442d603291398773ffffffffffffffffffffffffffffffffffffffff166140b09092919063ffffffff16565b90506000818060200190516020811015613bea57600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600080836001016000848152602001908152602001600020541415905092915050565b60008083600101600084815260200190815260200160002054905060008114613d515760006001820390506000600186600001805490500390506000866000018281548110613cc057fe5b9060005260206000200154905080876000018481548110613cdd57fe5b9060005260206000200181905550600183018760010160008381526020019081526020016000208190555086600001805480613d1557fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050613d57565b60009150505b92915050565b6000613d6983836140c8565b613dc2578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613dc7565b600090505b92915050565b6000808460010160008581526020019081526020016000205490506000811415613e7457846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050613ea2565b82856000016001830381548110613e8757fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613f4c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b613f5581612ee6565b15613fc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b613fd460008383613737565b61402581600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061375690919063ffffffff16565b5061403c818360026137709092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b60606140bf84846000856140eb565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b606082471015614146576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806144a96026913960400191505060405180910390fd5b61414f8561409d565b6141c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061421057805182526020820191506020810190506020830392506141ed565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614272576040519150601f19603f3d011682016040523d82523d6000602084013e614277565b606091505b5091509150614287828286614293565b92505050949350505050565b606083156142a357829050614358565b6000835111156142b65782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561431d578082015181840152602081019050614302565b50505050905090810190601f16801561434a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928261439557600085556143dc565b82601f106143ae57805160ff19168380011785556143dc565b828001600101855582156143dc579182015b828111156143db5782518255916020019190600101906143c0565b5b5090506143e991906143ed565b5090565b5b808211156144065760008160009055506001016143ee565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e45746865722076616c75652073656e742069732062656c6f7720746865207072696365456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564596f752063616e2061646f7074206d696e696d756d20312c206d6178696d756d2032302044696769726f636b73a2646970667358221220634f2798129bdc2c3b920aba2446810415e25cdb3adb19ca101dae0e8c28cea464736f6c63430007060033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d586d317238316937434379786a70767278416d387a39697856314675653339534571334236596b52435158632f000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): https://gateway.pinata.cloud/ipfs/QmXm1r81i7CCyxjpvrxAm8z9ixV1Fue39SEq3B6YkRCQXc/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [2] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [3] : 732f516d586d317238316937434379786a70767278416d387a39697856314675
Arg [4] : 653339534571334236596b52435158632f000000000000000000000000000000


Deployed Bytecode Sourcemap

66617:11896:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10154:150;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;51379:100;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54165:221;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;53695:404;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;76886:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;53173:211;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;66836:34;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;66796:33;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;55055:305;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;52935:162;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;55431:151;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;53461:172;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;77211:79;;;;;;;;;;;;;:::i;:::-;;77014:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51135:177;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;52754:97;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75432:884;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;50852:221;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;65949:148;;;;;;;;;;;;;:::i;:::-;;73824:540;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77302:123;;;:::i;:::-;;65298:87;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;77476:638;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51548:104;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66877:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;54458:295;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;78173:337;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;66744:45;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;66695:42;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;77125:78;;;;;;;;;;;;;:::i;:::-;;55653:285;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51723:792;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74376:1048;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;54824:164;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;66929:43;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66252:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;76327:530;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;10154:150;10239:4;10263:20;:33;10284:11;10263:33;;;;;;;;;;;;;;;;;;;;;;;;;;;10256:40;;10154:150;;;:::o;51379:100::-;51433:13;51466:5;51459:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51379:100;:::o;54165:221::-;54241:7;54269:16;54277:7;54269;:16::i;:::-;54261:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54354:15;:24;54370:7;54354:24;;;;;;;;;;;;;;;;;;;;;54347:31;;54165:221;;;:::o;53695:404::-;53776:13;53792:23;53807:7;53792:14;:23::i;:::-;53776:39;;53840:5;53834:11;;:2;:11;;;;53826:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53920:5;53904:21;;:12;:10;:12::i;:::-;:21;;;:69;;;;53929:44;53953:5;53960:12;:10;:12::i;:::-;53929:23;:44::i;:::-;53904:69;53896:161;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54070:21;54079:2;54083:7;54070:8;:21::i;:::-;53695:404;;;:::o;76886:116::-;65529:12;:10;:12::i;:::-;65518:23;;:7;:5;:7::i;:::-;:23;;;65510:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76989:5:::1;76962:24;:32;;;;;;;;;;;;:::i;:::-;;76886:116:::0;:::o;53173:211::-;53234:7;53355:21;:12;:19;:21::i;:::-;53348:28;;53173:211;:::o;66836:34::-;;;;;;;;;;;;;:::o;66796:33::-;;;;:::o;55055:305::-;55216:41;55235:12;:10;:12::i;:::-;55249:7;55216:18;:41::i;:::-;55208:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55324:28;55334:4;55340:2;55344:7;55324:9;:28::i;:::-;55055:305;;;:::o;52935:162::-;53032:7;53059:30;53083:5;53059:13;:20;53073:5;53059:20;;;;;;;;;;;;;;;:23;;:30;;;;:::i;:::-;53052:37;;52935:162;;;;:::o;55431:151::-;55535:39;55552:4;55558:2;55562:7;55535:39;;;;;;;;;;;;:16;:39::i;:::-;55431:151;;;:::o;53461:172::-;53536:7;53557:15;53578:22;53594:5;53578:12;:15;;:22;;;;:::i;:::-;53556:44;;;53618:7;53611:14;;;53461:172;;;:::o;77211:79::-;65529:12;:10;:12::i;:::-;65518:23;;:7;:5;:7::i;:::-;:23;;;65510:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77277:5:::1;77260:14;;:22;;;;;;;;;;;;;;;;;;77211:79::o:0;77014:99::-;65529:12;:10;:12::i;:::-;65518:23;;:7;:5;:7::i;:::-;:23;;;65510:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77085:20:::1;77097:7;77085:11;:20::i;:::-;77014:99:::0;:::o;51135:177::-;51207:7;51234:70;51251:7;51234:70;;;;;;;;;;;;;;;;;:12;:16;;:70;;;;;:::i;:::-;51227:77;;51135:177;;;:::o;52754:97::-;52802:13;52835:8;52828:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52754:97;:::o;75432:884::-;75495:7;66732:5;75523:3;:19;75515:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75593:4;75586:3;:11;75582:727;;75621:18;75614:25;;;;75582:727;75699:4;75692:3;:11;75688:621;;75727:18;75720:25;;;;75688:621;75806:4;75799:3;:11;75795:514;;75834:18;75827:25;;;;75795:514;75913:4;75906:3;:11;75902:407;;75941:18;75934:25;;;;75902:407;76020:4;76013:3;:11;76009:300;;76048:17;76041:24;;;;76009:300;76128:3;76121;:10;76117:192;;76155:17;76148:24;;;;76117:192;76246:17;76239:24;;75432:884;;;;:::o;50852:221::-;50924:7;50969:1;50952:19;;:5;:19;;;;50944:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51036:29;:13;:20;51050:5;51036:20;;;;;;;;;;;;;;;:27;:29::i;:::-;51029:36;;50852:221;;;:::o;65949:148::-;65529:12;:10;:12::i;:::-;65518:23;;:7;:5;:7::i;:::-;:23;;;65510:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66056:1:::1;66019:40;;66040:6;;;;;;;;;;;66019:40;;;;;;;;;;;;66087:1;66070:6;;:19;;;;;;;;;;;;;;;;;;65949:148::o:0;73824:540::-;73885:16;73915:18;73936:17;73946:6;73936:9;:17::i;:::-;73915:38;;73982:1;73968:10;:15;73964:393;;;74059:1;74045:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74038:23;;;;;73964:393;74094:23;74134:10;74120:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74094:51;;74160:13;74188:130;74212:10;74204:5;:18;74188:130;;;74268:34;74288:6;74296:5;74268:19;:34::i;:::-;74252:6;74259:5;74252:13;;;;;;;;;;;;;:50;;;;;74224:7;;;;;;;74188:130;;;74339:6;74332:13;;;;;73824:540;;;;:::o;77302:123::-;65529:12;:10;:12::i;:::-;65518:23;;:7;:5;:7::i;:::-;:23;;;65510:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77377:10:::1;77369:24;;:47;77394:21;77369:47;;;;;;;;;;;;;;;;;;;;;;;77361:56;;;::::0;::::1;;77302:123::o:0;65298:87::-;65344:7;65371:6;;;;;;;;;;;65364:13;;65298:87;:::o;77476:638::-;77578:12;77551:11;:23;77563:10;77551:23;;;;;;;;;;;;;;;;:39;;77543:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66732:5;77639:31;77657:12;77639:13;:11;:13::i;:::-;:17;;:31;;;;:::i;:::-;:48;;77631:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66786:3;77732:35;77754:12;77732:17;;:21;;:35;;;;:::i;:::-;:57;;77724:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77838:6;77833:274;77854:12;77850:1;:16;77833:274;;;77888:14;77905:13;:11;:13::i;:::-;77888:30;;77959;77987:1;77959:11;:23;77971:10;77959:23;;;;;;;;;;;;;;;;:27;;:30;;;;:::i;:::-;77933:11;:23;77945:10;77933:23;;;;;;;;;;;;;;;:56;;;;78024:24;78046:1;78024:17;;:21;;:24;;;;:::i;:::-;78004:17;:44;;;;78063:32;78073:10;78085:9;78063;:32::i;:::-;77833:274;77868:3;;;;;;;77833:274;;;;77476:638;:::o;51548:104::-;51604:13;51637:7;51630:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51548:104;:::o;66877:43::-;;;;;;;;;;;;;;;;;:::o;54458:295::-;54573:12;:10;:12::i;:::-;54561:24;;:8;:24;;;;54553:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54673:8;54628:18;:32;54647:12;:10;:12::i;:::-;54628:32;;;;;;;;;;;;;;;:42;54661:8;54628:42;;;;;;;;;;;;;;;;:53;;;;;;;;;;;;;;;;;;54726:8;54697:48;;54712:12;:10;:12::i;:::-;54697:48;;;54736:8;54697:48;;;;;;;;;;;;;;;;;;;;54458:295;;:::o;78173:337::-;65529:12;:10;:12::i;:::-;65518:23;;:7;:5;:7::i;:::-;:23;;;65510:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66732:5:::1;78273:31;78291:12;78273:13;:11;:13::i;:::-;:17;;:31;;;;:::i;:::-;:47;78265:81;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;66786:3;78365:35;78387:12;78365:17;;:21;;:35;;;;:::i;:::-;:57;;78357:96;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;78490:12;78464:11;:23;78476:10;78464:23;;;;;;;;;;;;;;;:38;;;;78173:337:::0;;:::o;66744:45::-;66786:3;66744:45;:::o;66695:42::-;66732:5;66695:42;:::o;77125:78::-;65529:12;:10;:12::i;:::-;65518:23;;:7;:5;:7::i;:::-;:23;;;65510:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77191:4:::1;77174:14;;:21;;;;;;;;;;;;;;;;;;77125:78::o:0;55653:285::-;55785:41;55804:12;:10;:12::i;:::-;55818:7;55785:18;:41::i;:::-;55777:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55891:39;55905:4;55911:2;55915:7;55924:5;55891:13;:39::i;:::-;55653:285;;;;:::o;51723:792::-;51796:13;51830:16;51838:7;51830;:16::i;:::-;51822:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51911:23;51937:10;:19;51948:7;51937:19;;;;;;;;;;;51911:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51967:18;51988:9;:7;:9::i;:::-;51967:30;;52095:1;52079:4;52073:18;:23;52069:72;;;52120:9;52113:16;;;;;;52069:72;52271:1;52251:9;52245:23;:27;52241:108;;;52320:4;52326:9;52303:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52289:48;;;;;;52241:108;52481:4;52487:18;:7;:16;:18::i;:::-;52464:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52450:57;;;;51723:792;;;;:::o;74376:1048::-;74423:7;74469:4;74451:22;;:14;;;;;;;;;;;:22;;;74443:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66732:5;74516:13;:11;:13::i;:::-;:29;74508:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74585:18;74606:13;:11;:13::i;:::-;74585:34;;74651:4;74634:13;:21;74630:787;;74679:18;74672:25;;;;;74630:787;74767:4;74750:13;:21;74746:671;;74795:18;74788:25;;;;;74746:671;74884:4;74867:13;:21;74863:554;;74912:18;74905:25;;;;;74863:554;75001:4;74984:13;:21;74980:437;;75029:18;75022:25;;;;;74980:437;75118:4;75101:13;:21;75097:320;;75146:17;75139:24;;;;;75097:320;75236:3;75219:13;:20;75215:202;;75263:17;75256:24;;;;;75215:202;75354:17;75347:24;;;74376:1048;;:::o;54824:164::-;54921:4;54945:18;:25;54964:5;54945:25;;;;;;;;;;;;;;;:35;54971:8;54945:35;;;;;;;;;;;;;;;;;;;;;;;;;54938:42;;54824:164;;;;:::o;66929:43::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;66252:244::-;65529:12;:10;:12::i;:::-;65518:23;;:7;:5;:7::i;:::-;:23;;;65510:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66361:1:::1;66341:22;;:8;:22;;;;66333:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66451:8;66422:38;;66443:6;;;;;;;;;;;66422:38;;;;;;;;;;;;66480:8;66471:6;;:17;;;;;;;;;;;;;;;;;;66252:244:::0;:::o;76327:530::-;76421:1;76406:12;:16;:38;;;;;76442:2;76426:12;:18;;76406:38;76398:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66732:5;76513:31;76531:12;76513:13;:11;:13::i;:::-;:17;;:31;;;;:::i;:::-;:48;;76505:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76619:34;76640:12;76619:16;:14;:16::i;:::-;:20;;:34;;;;:::i;:::-;76606:9;:47;;76598:95;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76711:6;76706:144;76727:12;76723:1;:16;76706:144;;;76761:14;76778:13;:11;:13::i;:::-;76761:30;;76806:32;76816:10;76828:9;76806;:32::i;:::-;76706:144;76741:3;;;;;;;76706:144;;;;76327:530;:::o;57405:127::-;57470:4;57494:30;57516:7;57494:12;:21;;:30;;;;:::i;:::-;57487:37;;57405:127;;;:::o;667:106::-;720:15;755:10;748:17;;667:106;:::o;63312:183::-;63405:2;63378:15;:24;63394:7;63378:24;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;63461:7;63457:2;63423:46;;63432:23;63447:7;63432:14;:23::i;:::-;63423:46;;;;;;;;;;;;63312:183;;:::o;44149:123::-;44218:7;44245:19;44253:3;:10;;44245:7;:19::i;:::-;44238:26;;44149:123;;;:::o;57699:355::-;57792:4;57817:16;57825:7;57817;:16::i;:::-;57809:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57893:13;57909:23;57924:7;57909:14;:23::i;:::-;57893:39;;57962:5;57951:16;;:7;:16;;;:51;;;;57995:7;57971:31;;:20;57983:7;57971:11;:20::i;:::-;:31;;;57951:51;:94;;;;58006:39;58030:5;58037:7;58006:23;:39::i;:::-;57951:94;57943:103;;;57699:355;;;;:::o;60835:599::-;60960:4;60933:31;;:23;60948:7;60933:14;:23::i;:::-;:31;;;60925:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61061:1;61047:16;;:2;:16;;;;61039:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61117:39;61138:4;61144:2;61148:7;61117:20;:39::i;:::-;61221:29;61238:1;61242:7;61221:8;:29::i;:::-;61263:35;61290:7;61263:13;:19;61277:4;61263:19;;;;;;;;;;;;;;;:26;;:35;;;;:::i;:::-;;61309:30;61331:7;61309:13;:17;61323:2;61309:17;;;;;;;;;;;;;;;:21;;:30;;;;:::i;:::-;;61352:29;61369:7;61378:2;61352:12;:16;;:29;;;;;:::i;:::-;;61418:7;61414:2;61399:27;;61408:4;61399:27;;;;;;;;;;;;60835:599;;;:::o;35952:137::-;36023:7;36058:22;36062:3;:10;;36074:5;36058:3;:22::i;:::-;36050:31;;36043:38;;35952:137;;;;:::o;44611:236::-;44691:7;44700;44721:11;44734:13;44751:22;44755:3;:10;;44767:5;44751:3;:22::i;:::-;44720:53;;;;44800:3;44792:12;;44830:5;44822:14;;44784:55;;;;;;44611:236;;;;;:::o;62035:100::-;62119:8;62108;:19;;;;;;;;;;;;:::i;:::-;;62035:100;:::o;45897:213::-;46004:7;46055:44;46060:3;:10;;46080:3;46072:12;;46086;46055:4;:44::i;:::-;46047:53;;46024:78;;45897:213;;;;;:::o;35494:114::-;35554:7;35581:19;35589:3;:10;;35581:7;:19::i;:::-;35574:26;;35494:114;;;:::o;13704:179::-;13762:7;13782:9;13798:1;13794;:5;13782:17;;13823:1;13818;:6;;13810:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13874:1;13867:8;;;13704:179;;;;:::o;14166:158::-;14224:7;14257:1;14252;:6;;14244:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14315:1;14311;:5;14304:12;;14166:158;;;;:::o;58397:110::-;58473:26;58483:2;58487:7;58473:26;;;;;;;;;;;;:9;:26::i;:::-;58397:110;;:::o;56820:272::-;56934:28;56944:4;56950:2;56954:7;56934:9;:28::i;:::-;56981:48;57004:4;57010:2;57014:7;57023:5;56981:22;:48::i;:::-;56973:111;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56820:272;;;;:::o;46349:746::-;46405:13;46635:1;46626:5;:10;46622:53;;;46653:10;;;;;;;;;;;;;;;;;;;;;46622:53;46685:12;46700:5;46685:20;;46716:14;46741:78;46756:1;46748:4;:9;46741:78;;46774:8;;;;;;;46805:2;46797:10;;;;;;;;;46741:78;;;46829:19;46861:6;46851:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46829:39;;46879:13;46904:1;46895:6;:10;46879:26;;46923:5;46916:12;;46939:117;46954:1;46946:4;:9;46939:117;;47015:2;47008:4;:9;;;;;;47003:2;:14;46990:29;;46972:6;46979:7;;;;;;;46972:15;;;;;;;;;;;:47;;;;;;;;;;;47042:2;47034:10;;;;;;;;;46939:117;;;47080:6;47066:21;;;;;;46349:746;;;;:::o;14583:220::-;14641:7;14670:1;14665;:6;14661:20;;;14680:1;14673:8;;;;14661:20;14692:9;14708:1;14704;:5;14692:17;;14737:1;14732;14728;:5;;;;;;:10;14720:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14794:1;14787:8;;;14583:220;;;;;:::o;43910:151::-;43994:4;44018:35;44028:3;:10;;44048:3;44040:12;;44018:9;:35::i;:::-;44011:42;;43910:151;;;;:::o;40728:110::-;40784:7;40811:3;:12;;:19;;;;40804:26;;40728:110;;;:::o;64108:93::-;;;;:::o;35039:137::-;35109:4;35133:35;35141:3;:10;;35161:5;35153:14;;35133:7;:35::i;:::-;35126:42;;35039:137;;;;:::o;34732:131::-;34799:4;34823:32;34828:3;:10;;34848:5;34840:14;;34823:4;:32::i;:::-;34816:39;;34732:131;;;;:::o;43333:185::-;43422:4;43446:64;43451:3;:10;;43471:3;43463:12;;43501:5;43485:23;;43477:32;;43446:4;:64::i;:::-;43439:71;;43333:185;;;;;:::o;30990:204::-;31057:7;31106:5;31085:3;:11;;:18;;;;:26;31077:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31168:3;:11;;31180:5;31168:18;;;;;;;;;;;;;;;;31161:25;;30990:204;;;;:::o;41193:279::-;41260:7;41269;41319:5;41297:3;:12;;:19;;;;:27;41289:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41376:22;41401:3;:12;;41414:5;41401:19;;;;;;;;;;;;;;;;;;41376:44;;41439:5;:10;;;41451:5;:12;;;41431:33;;;;;41193:279;;;;;:::o;42690:319::-;42784:7;42804:16;42823:3;:12;;:17;42836:3;42823:17;;;;;;;;;;;;42804:36;;42871:1;42859:8;:13;;42874:12;42851:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42941:3;:12;;42965:1;42954:8;:12;42941:26;;;;;;;;;;;;;;;;;;:33;;;42934:40;;;42690:319;;;;;:::o;30537:109::-;30593:7;30620:3;:11;;:18;;;;30613:25;;30537:109;;;:::o;58734:250::-;58830:18;58836:2;58840:7;58830:5;:18::i;:::-;58867:54;58898:1;58902:2;58906:7;58915:5;58867:22;:54::i;:::-;58859:117;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58734:250;;;:::o;62700:604::-;62821:4;62848:15;:2;:13;;;:15::i;:::-;62843:60;;62887:4;62880:11;;;;62843:60;62913:23;62939:252;62992:45;;;63052:12;:10;:12::i;:::-;63079:4;63098:7;63120:5;62955:181;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62939:252;;;;;;;;;;;;;;;;;:2;:15;;;;:252;;;;;:::i;:::-;62913:278;;63202:13;63229:10;63218:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63202:48;;47856:10;63279:16;;63269:26;;;:6;:26;;;;63261:35;;;;62700:604;;;;;;;:::o;40508:125::-;40579:4;40624:1;40603:3;:12;;:17;40616:3;40603:17;;;;;;;;;;;;:22;;40596:29;;40508:125;;;;:::o;28692:1544::-;28758:4;28876:18;28897:3;:12;;:19;28910:5;28897:19;;;;;;;;;;;;28876:40;;28947:1;28933:10;:15;28929:1300;;29295:21;29332:1;29319:10;:14;29295:38;;29348:17;29389:1;29368:3;:11;;:18;;;;:22;29348:42;;29635:17;29655:3;:11;;29667:9;29655:22;;;;;;;;;;;;;;;;29635:42;;29801:9;29772:3;:11;;29784:13;29772:26;;;;;;;;;;;;;;;:38;;;;29920:1;29904:13;:17;29878:3;:12;;:23;29891:9;29878:23;;;;;;;;;;;:43;;;;30030:3;:11;;:17;;;;;;;;;;;;;;;;;;;;;;;;30125:3;:12;;:19;30138:5;30125:19;;;;;;;;;;;30118:26;;;30168:4;30161:11;;;;;;;;28929:1300;30212:5;30205:12;;;28692:1544;;;;;:::o;28102:414::-;28165:4;28187:21;28197:3;28202:5;28187:9;:21::i;:::-;28182:327;;28225:3;:11;;28242:5;28225:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28408:3;:11;;:18;;;;28386:3;:12;;:19;28399:5;28386:19;;;;;;;;;;;:40;;;;28448:4;28441:11;;;;28182:327;28492:5;28485:12;;28102:414;;;;;:::o;38008:692::-;38084:4;38200:16;38219:3;:12;;:17;38232:3;38219:17;;;;;;;;;;;;38200:36;;38265:1;38253:8;:13;38249:444;;;38320:3;:12;;38338:38;;;;;;;;38355:3;38338:38;;;;38368:5;38338:38;;;38320:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38535:3;:12;;:19;;;;38515:3;:12;;:17;38528:3;38515:17;;;;;;;;;;;:39;;;;38576:4;38569:11;;;;;38249:444;38649:5;38613:3;:12;;38637:1;38626:8;:12;38613:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;38676:5;38669:12;;;38008:692;;;;;;:::o;59320:404::-;59414:1;59400:16;;:2;:16;;;;59392:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59473:16;59481:7;59473;:16::i;:::-;59472:17;59464:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59535:45;59564:1;59568:2;59572:7;59535:20;:45::i;:::-;59593:30;59615:7;59593:13;:17;59607:2;59593:17;;;;;;;;;;;;;;;:21;;:30;;;;:::i;:::-;;59636:29;59653:7;59662:2;59636:12;:16;;:29;;;;;:::i;:::-;;59708:7;59704:2;59683:33;;59700:1;59683:33;;;;;;;;;;;;59320:404;;:::o;19133:422::-;19193:4;19401:12;19512:7;19500:20;19492:28;;19546:1;19539:4;:8;19532:15;;;19133:422;;;:::o;22051:195::-;22154:12;22186:52;22208:6;22216:4;22222:1;22225:12;22186:21;:52::i;:::-;22179:59;;22051:195;;;;;:::o;30322:129::-;30395:4;30442:1;30419:3;:12;;:19;30432:5;30419:19;;;;;;;;;;;;:24;;30412:31;;30322:129;;;;:::o;23103:530::-;23230:12;23288:5;23263:21;:30;;23255:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23355:18;23366:6;23355:10;:18::i;:::-;23347:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23481:12;23495:23;23522:6;:11;;23542:5;23550:4;23522:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23480:75;;;;23573:52;23591:7;23600:10;23612:12;23573:17;:52::i;:::-;23566:59;;;;23103:530;;;;;;:::o;25643:742::-;25758:12;25787:7;25783:595;;;25818:10;25811:17;;;;25783:595;25952:1;25932:10;:17;:21;25928:439;;;26195:10;26189:17;26256:15;26243:10;26239:2;26235:19;26228:44;26143:148;26338:12;26331:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25643:742;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://634f2798129bdc2c3b920aba2446810415e25cdb3adb19ca101dae0e8c28cea4
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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