FTM Price: $1.00 (-2.27%)
Gas: 75 GWei

Contract

0x76197243f5671fC50Bb6cE612f161109e8Bb8B07
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo500 FTM

FTM Value

$498.78 (@ $1.00/FTM)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Mint Metti Token...214117282021-11-08 5:13:24872 days ago1636348404IN
0x76197243...9e8Bb8B07
500 FTM0.04484675223.2826
0x60c06040214116382021-11-08 5:12:14872 days ago1636348334IN
 Create: MettiFrens
0 FTM0.53504815239.0626

Latest 1 internal transaction

Parent Txn Hash Block From To Value
214116382021-11-08 5:12:14872 days ago1636348334  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MettiFrens

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at ftmscan.com on 2021-11-08
*/

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Counters.sol


// OpenZeppelin Contracts v4.3.2 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File: contracts/WithLimitedSupply.sol


pragma solidity ^0.8.0;


/// @author 1001.digital 
/// @title A token tracker that limits the token supply and increments token IDs on each new mint.
abstract contract WithLimitedSupply {
    using Counters for Counters.Counter;

    // Keeps track of how many we have minted
    Counters.Counter private _tokenCount;

    /// @dev The maximum count of tokens this token tracker will hold.
    uint256 private _maxSupply;

    /// Instanciate the contract
    /// @param totalSupply_ how many tokens this collection should hold
    constructor (uint256 totalSupply_) {
        _maxSupply = totalSupply_;
    }

    /// @dev Get the max Supply
    /// @return the maximum token count
    function maxSupply() public view returns (uint256) {
        return _maxSupply;
    }

    /// @dev Get the current token count
    /// @return the created token count
    function tokenCount() public view returns (uint256) {
        return _tokenCount.current();
    }

    /// @dev Check whether tokens are still available
    /// @return the available token count
    function availableTokenCount() public view returns (uint256) {
        return maxSupply() - tokenCount();
    }

    /// @dev Increment the token count and fetch the latest count
    /// @return the next token id
    function nextToken() internal virtual ensureAvailability returns (uint256) {
        uint256 token = _tokenCount.current();

        _tokenCount.increment();

        return token;
    }

    /// @dev Check whether another token is still available
    modifier ensureAvailability() {
        require(availableTokenCount() > 0, "No more tokens available");
        _;
    }

    /// @param amount Check whether number of tokens are still available
    /// @dev Check whether tokens are still available
    modifier ensureAvailabilityFor(uint256 amount) {
        require(availableTokenCount() >= amount, "Requested number of tokens not available");
        _;
    }
}
// File: contracts/RandomlyAssigned.sol


pragma solidity ^0.8.0;


/// @author 1001.digital
/// @title Randomly assign tokenIDs from a given set of tokens.
abstract contract RandomlyAssigned is WithLimitedSupply {
    // Used for random index assignment
    mapping(uint256 => uint256) private tokenMatrix;

    // The initial token ID
    uint256 private startFrom;

    /// Instanciate the contract
    /// @param _maxSupply how many tokens this collection should hold
    /// @param _startFrom the tokenID with which to start counting
    constructor (uint256 _maxSupply, uint256 _startFrom)
        WithLimitedSupply(_maxSupply)
    {
        startFrom = _startFrom;
    }

    /// Get the next token ID
    /// @dev Randomly gets a new token ID and keeps track of the ones that are still available.
    /// @return the next token ID
    function nextToken() internal override ensureAvailability returns (uint256) {
        uint256 maxIndex = maxSupply() - tokenCount();
        uint256 random = uint256(keccak256(
            abi.encodePacked(
                msg.sender,
                block.coinbase,
                block.difficulty,
                block.gaslimit,
                block.timestamp
            )
        )) % maxIndex;

        uint256 value = 0;
        if (tokenMatrix[random] == 0) {
            // If this matrix position is empty, set the value to the generated random number.
            value = random;
        } else {
            // Otherwise, use the previously stored number from the matrix.
            value = tokenMatrix[random];
        }

        // If the last available tokenID is still unused...
        if (tokenMatrix[maxIndex - 1] == 0) {
            // ...store that ID in the current matrix position.
            tokenMatrix[random] = maxIndex - 1;
        } else {
            // ...otherwise copy over the stored number to the current matrix position.
            tokenMatrix[random] = tokenMatrix[maxIndex - 1];
        }

        // Increment counts
        super.nextToken();

        return value + startFrom;
    }
}
// File: @openzeppelin/contracts/utils/math/SafeMath.sol



pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            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) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

    /**
     * @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) {
        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) {
        return a * b;
    }

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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



pragma solidity ^0.8.0;

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

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

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

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

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

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



pragma solidity ^0.8.0;

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

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

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



pragma solidity ^0.8.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() {
        _setOwner(_msgSender());
    }

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

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

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

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

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

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



pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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



pragma solidity ^0.8.0;

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

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



pragma solidity ^0.8.0;

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

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



pragma solidity ^0.8.0;


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

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



pragma solidity ^0.8.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/extensions/IERC721Enumerable.sol



pragma solidity ^0.8.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/extensions/IERC721Metadata.sol



pragma solidity ^0.8.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/ERC721.sol



pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

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

    /**
     * @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 _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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 baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @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 || 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 _owners[tokenId] != address(0);
    }

    /**
     * @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 || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `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);

        _balances[to] += 1;
        _owners[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);

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

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

        _balances[owner] -= 1;
        delete _owners[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");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @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` and `to` are never both zero.
     *
     * 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/token/ERC721/extensions/ERC721Enumerable.sol



pragma solidity ^0.8.0;



/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

// File: contracts/MettiFrens.sol

//SPDX-License-Identifier: MIT

// ███    ███ ███████ ████████ ████████ ██     ███████ ██████  ███████ ███    ██ ███████ 
// ████  ████ ██         ██       ██    ██     ██      ██   ██ ██      ████   ██ ██      
// ██ ████ ██ █████      ██       ██    ██     █████   ██████  █████   ██ ██  ██ ███████ 
// ██  ██  ██ ██         ██       ██    ██     ██      ██   ██ ██      ██  ██ ██      ██ 
// ██      ██ ███████    ██       ██    ██     ██      ██   ██ ███████ ██   ████ ███████ 
// 
// MettiFrens is a test NFT collection for artists to learn the genertaive process of NFT collection minting without coding background!
// Testing so these will not be in official artwork collections created by Pumpametti. Maybe as educational artifacts who knows. 

pragma solidity ^0.8.0;

interface MettiInuInterface {
  function balanceOf(address account) external view returns (uint256 balance);
}





contract MettiFrens is ERC721Enumerable, Ownable, RandomlyAssigned {
  using Strings for uint256;
  
  string public baseExtension = ".json";
  uint256 public cost = 500 ether; 
  uint256 public maxFREN = 100; 
  uint256 public maxFRENMintAmount = 10; 
  bool public paused = false;
  
  string public baseURI = "https://ipfs.io/ipfs/QmXx1FooggXUQAQN2FF8DwgPuwRggMQGctXQzjsEK5s8jo/";
  
  address public MettiInuTokenAddress = 0x42aE8468A1FDDB965d420BD71368a87Ec3a2B4b8;
  MettiInuInterface MettiInuTokenContract = MettiInuInterface(MettiInuTokenAddress); 

  constructor(
  ) ERC721("MettiFrens", "FREN")
  RandomlyAssigned(100, 1) {}

  // internal
  function _baseURI() internal view virtual override returns (string memory) {
    return baseURI;
  }

  // public
    function mintMettiTokenHolderFRENs(uint256 _FRENMintAmount) public payable {
    require(!paused);
    require(MettiInuTokenContract.balanceOf(msg.sender) >= 10000000000000000000000000000, "Not enough Metti Inu tokens");
    require(_FRENMintAmount > 0);
    require(_FRENMintAmount <= maxFRENMintAmount);
    require(totalSupply() + _FRENMintAmount <= maxFREN);
    require(msg.value >= cost * _FRENMintAmount);

    for (uint256 i = 1; i <= _FRENMintAmount; i++) {
        uint256 mintIndex = nextToken();
     if (totalSupply() < maxFREN) {
                _safeMint(_msgSender(), mintIndex);
    }
   }
  }

  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );

    string memory currentBaseURI = _baseURI();
    return bytes(currentBaseURI).length > 0
        ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension))
        : "";
  }

  //only owner

  function withdraw() public payable onlyOwner {
    require(payable(msg.sender).send(address(this).balance));
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"MettiInuTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"maxFREN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFRENMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_FRENMintAmount","type":"uint256"}],"name":"mintMettiTokenHolderFRENs","outputs":[],"stateMutability":"payable","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"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":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60c06040526005608081905264173539b7b760d91b60a09081526200002891600f9190620001a9565b50681b1ae4d6e2ef5000006010556064601155600a6012556013805460ff191690556040805160808101909152604480825262002450602083013980516200007991601491602090910190620001a9565b50601580547342ae8468a1fddb965d420bd71368a87ec3a2b4b86001600160a01b03199182168117909255601680549091169091179055348015620000bd57600080fd5b50604080518082018252600a8152694d657474694672656e7360b01b602080830191825283518085019094526004845263232922a760e11b908401528151606493600193859390926200011391600091620001a9565b50805162000129906001906020840190620001a9565b50505062000146620001406200015360201b60201c565b62000157565b600c55600e55506200028c565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001b7906200024f565b90600052602060002090601f016020900481019282620001db576000855562000226565b82601f10620001f657805160ff191683800117855562000226565b8280016001018555821562000226579182015b828111156200022657825182559160200191906001019062000209565b506200023492915062000238565b5090565b5b8082111562000234576000815560010162000239565b600181811c908216806200026457607f821691505b602082108114156200028657634e487b7160e01b600052602260045260246000fd5b50919050565b6121b4806200029c6000396000f3fe6080604052600436106101d85760003560e01c806370a0823111610102578063b88d4fde11610095578063d65a9c4f11610064578063d65a9c4f146104f1578063e14ca35314610504578063e985e9c514610519578063f2fde38b1461056257600080fd5b8063b88d4fde14610487578063c6682862146104a7578063c87b56dd146104bc578063d5abeb01146104dc57600080fd5b806395d89b41116100d157806395d89b41146104275780639f181b5e1461043c578063a22cb46514610451578063a3d1922b1461047157600080fd5b806370a08231146103b4578063715018a6146103d45780638796bfd6146103e95780638da5cb5b1461040957600080fd5b80632513479b1161017a5780634f6ccce7116101495780634f6ccce7146103455780635c975abb146103655780636352211e1461037f5780636c0360eb1461039f57600080fd5b80632513479b146102e75780632f745c59146102fd5780633ccfd60b1461031d57806342842e0e1461032557600080fd5b8063095ea7b3116101b6578063095ea7b31461026c57806313faede61461028e57806318160ddd146102b257806323b872dd146102c757600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004611bac565b610582565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b506102276105ad565b6040516102099190611c21565b34801561024057600080fd5b5061025461024f366004611c34565b61063f565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c610287366004611c69565b6106d9565b005b34801561029a57600080fd5b506102a460105481565b604051908152602001610209565b3480156102be57600080fd5b506008546102a4565b3480156102d357600080fd5b5061028c6102e2366004611c93565b6107ef565b3480156102f357600080fd5b506102a460125481565b34801561030957600080fd5b506102a4610318366004611c69565b610820565b61028c6108b6565b34801561033157600080fd5b5061028c610340366004611c93565b610906565b34801561035157600080fd5b506102a4610360366004611c34565b610921565b34801561037157600080fd5b506013546101fd9060ff1681565b34801561038b57600080fd5b5061025461039a366004611c34565b6109b4565b3480156103ab57600080fd5b50610227610a2b565b3480156103c057600080fd5b506102a46103cf366004611ccf565b610ab9565b3480156103e057600080fd5b5061028c610b40565b3480156103f557600080fd5b50601554610254906001600160a01b031681565b34801561041557600080fd5b50600a546001600160a01b0316610254565b34801561043357600080fd5b50610227610b74565b34801561044857600080fd5b506102a4610b83565b34801561045d57600080fd5b5061028c61046c366004611cea565b610b93565b34801561047d57600080fd5b506102a460115481565b34801561049357600080fd5b5061028c6104a2366004611d3c565b610c58565b3480156104b357600080fd5b50610227610c90565b3480156104c857600080fd5b506102276104d7366004611c34565b610c9d565b3480156104e857600080fd5b50600c546102a4565b61028c6104ff366004611c34565b610d7b565b34801561051057600080fd5b506102a4610f01565b34801561052557600080fd5b506101fd610534366004611e18565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561056e57600080fd5b5061028c61057d366004611ccf565b610f18565b60006001600160e01b0319821663780e9d6360e01b14806105a757506105a782610fb3565b92915050565b6060600080546105bc90611e4b565b80601f01602080910402602001604051908101604052809291908181526020018280546105e890611e4b565b80156106355780601f1061060a57610100808354040283529160200191610635565b820191906000526020600020905b81548152906001019060200180831161061857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106bd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106e4826109b4565b9050806001600160a01b0316836001600160a01b031614156107525760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106b4565b336001600160a01b038216148061076e575061076e8133610534565b6107e05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106b4565b6107ea8383611003565b505050565b6107f93382611071565b6108155760405162461bcd60e51b81526004016106b490611e86565b6107ea838383611168565b600061082b83610ab9565b821061088d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106b4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146108e05760405162461bcd60e51b81526004016106b490611ed7565b60405133904780156108fc02916000818181858888f1935050505061090457600080fd5b565b6107ea83838360405180602001604052806000815250610c58565b600061092c60085490565b821061098f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106b4565b600882815481106109a2576109a2611f0c565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105a75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106b4565b60148054610a3890611e4b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6490611e4b565b8015610ab15780601f10610a8657610100808354040283529160200191610ab1565b820191906000526020600020905b815481529060010190602001808311610a9457829003601f168201915b505050505081565b60006001600160a01b038216610b245760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106b4565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610b6a5760405162461bcd60e51b81526004016106b490611ed7565b6109046000611313565b6060600180546105bc90611e4b565b6000610b8e600b5490565b905090565b6001600160a01b038216331415610bec5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106b4565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610c623383611071565b610c7e5760405162461bcd60e51b81526004016106b490611e86565b610c8a84848484611365565b50505050565b600f8054610a3890611e4b565b6000818152600260205260409020546060906001600160a01b0316610d1c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106b4565b6000610d26611398565b90506000815111610d465760405180602001604052806000815250610d74565b80610d50846113a7565b600f604051602001610d6493929190611f22565b6040516020818303038152906040525b9392505050565b60135460ff1615610d8b57600080fd5b6016546040516370a0823160e01b81523360048201526b204fce5e3e25026110000000916001600160a01b0316906370a082319060240160206040518083038186803b158015610dda57600080fd5b505afa158015610dee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e129190611fe6565b1015610e605760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f756768204d6574746920496e7520746f6b656e73000000000060448201526064016106b4565b60008111610e6d57600080fd5b601254811115610e7c57600080fd5b60115481610e8960085490565b610e939190612015565b1115610e9e57600080fd5b80601054610eac919061202d565b341015610eb857600080fd5b60015b818111610efd576000610ecc6114a5565b9050601154610eda60085490565b1015610eea57610eea3382611638565b5080610ef58161204c565b915050610ebb565b5050565b6000610f0b610b83565b600c54610b8e9190612067565b600a546001600160a01b03163314610f425760405162461bcd60e51b81526004016106b490611ed7565b6001600160a01b038116610fa75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b4565b610fb081611313565b50565b60006001600160e01b031982166380ac58cd60e01b1480610fe457506001600160e01b03198216635b5e139f60e01b145b806105a757506301ffc9a760e01b6001600160e01b03198316146105a7565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611038826109b4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166110ea5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106b4565b60006110f5836109b4565b9050806001600160a01b0316846001600160a01b031614806111305750836001600160a01b03166111258461063f565b6001600160a01b0316145b8061116057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661117b826109b4565b6001600160a01b0316146111e35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106b4565b6001600160a01b0382166112455760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106b4565b611250838383611652565b61125b600082611003565b6001600160a01b0383166000908152600360205260408120805460019290611284908490612067565b90915550506001600160a01b03821660009081526003602052604081208054600192906112b2908490612015565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611370848484611168565b61137c8484848461170a565b610c8a5760405162461bcd60e51b81526004016106b49061207e565b6060601480546105bc90611e4b565b6060816113cb5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113f557806113df8161204c565b91506113ee9050600a836120e6565b91506113cf565b60008167ffffffffffffffff81111561141057611410611d26565b6040519080825280601f01601f19166020018201604052801561143a576020820181803683370190505b5090505b84156111605761144f600183612067565b915061145c600a866120fa565b611467906030612015565b60f81b81838151811061147c5761147c611f0c565b60200101906001600160f81b031916908160001a90535061149e600a866120e6565b945061143e565b6000806114b0610f01565b116114f85760405162461bcd60e51b81526020600482015260186024820152774e6f206d6f726520746f6b656e7320617661696c61626c6560401b60448201526064016106b4565b6000611502610b83565b600c5461150f9190612067565b6040516bffffffffffffffffffffffff1933606090811b8216602084015241901b166034820152446048820152456068820152426088820152909150600090829060a8016040516020818303038152906040528051906020012060001c61157691906120fa565b6000818152600d6020526040812054919250906115945750806115a5565b506000818152600d60205260409020545b600d60006115b4600186612067565b815260200190815260200160002054600014156115ea576115d6600184612067565b6000838152600d602052604090205561161a565b600d60006115f9600186612067565b81526020808201929092526040908101600090812054858252600d90935220555b611622611817565b50600e546116309082612015565b935050505090565b610efd828260405180602001604052806000815250611885565b6001600160a01b0383166116ad576116a881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6116d0565b816001600160a01b0316836001600160a01b0316146116d0576116d083826118b8565b6001600160a01b0382166116e7576107ea81611955565b826001600160a01b0316826001600160a01b0316146107ea576107ea8282611a04565b60006001600160a01b0384163b1561180c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061174e90339089908890889060040161210e565b602060405180830381600087803b15801561176857600080fd5b505af1925050508015611798575060408051601f3d908101601f191682019092526117959181019061214b565b60015b6117f2573d8080156117c6576040519150601f19603f3d011682016040523d82523d6000602084013e6117cb565b606091505b5080516117ea5760405162461bcd60e51b81526004016106b49061207e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611160565b506001949350505050565b600080611822610f01565b1161186a5760405162461bcd60e51b81526020600482015260186024820152774e6f206d6f726520746f6b656e7320617661696c61626c6560401b60448201526064016106b4565b6000611875600b5490565b9050610b8e600b80546001019055565b61188f8383611a48565b61189c600084848461170a565b6107ea5760405162461bcd60e51b81526004016106b49061207e565b600060016118c584610ab9565b6118cf9190612067565b600083815260076020526040902054909150808214611922576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061196790600190612067565b6000838152600960205260408120546008805493945090928490811061198f5761198f611f0c565b9060005260206000200154905080600883815481106119b0576119b0611f0c565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806119e8576119e8612168565b6001900381819060005260206000200160009055905550505050565b6000611a0f83610ab9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611a9e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106b4565b6000818152600260205260409020546001600160a01b031615611b035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106b4565b611b0f60008383611652565b6001600160a01b0382166000908152600360205260408120805460019290611b38908490612015565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610fb057600080fd5b600060208284031215611bbe57600080fd5b8135610d7481611b96565b60005b83811015611be4578181015183820152602001611bcc565b83811115610c8a5750506000910152565b60008151808452611c0d816020860160208601611bc9565b601f01601f19169290920160200192915050565b602081526000610d746020830184611bf5565b600060208284031215611c4657600080fd5b5035919050565b80356001600160a01b0381168114611c6457600080fd5b919050565b60008060408385031215611c7c57600080fd5b611c8583611c4d565b946020939093013593505050565b600080600060608486031215611ca857600080fd5b611cb184611c4d565b9250611cbf60208501611c4d565b9150604084013590509250925092565b600060208284031215611ce157600080fd5b610d7482611c4d565b60008060408385031215611cfd57600080fd5b611d0683611c4d565b915060208301358015158114611d1b57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611d5257600080fd5b611d5b85611c4d565b9350611d6960208601611c4d565b925060408501359150606085013567ffffffffffffffff80821115611d8d57600080fd5b818701915087601f830112611da157600080fd5b813581811115611db357611db3611d26565b604051601f8201601f19908116603f01168101908382118183101715611ddb57611ddb611d26565b816040528281528a6020848701011115611df457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611e2b57600080fd5b611e3483611c4d565b9150611e4260208401611c4d565b90509250929050565b600181811c90821680611e5f57607f821691505b60208210811415611e8057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600084516020611f358285838a01611bc9565b855191840191611f488184848a01611bc9565b8554920191600090600181811c9080831680611f6557607f831692505b858310811415611f8357634e487b7160e01b85526022600452602485fd5b808015611f975760018114611fa857611fd5565b60ff19851688528388019550611fd5565b60008b81526020902060005b85811015611fcd5781548a820152908401908801611fb4565b505083880195505b50939b9a5050505050505050505050565b600060208284031215611ff857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561202857612028611fff565b500190565b600081600019048311821515161561204757612047611fff565b500290565b600060001982141561206057612060611fff565b5060010190565b60008282101561207957612079611fff565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826120f5576120f56120d0565b500490565b600082612109576121096120d0565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061214190830184611bf5565b9695505050505050565b60006020828403121561215d57600080fd5b8151610d7481611b96565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220dba2032d2fb0324c2cb3421de2b85d51934e329d8cd8172ea0e6f130d284189664736f6c6343000809003368747470733a2f2f697066732e696f2f697066732f516d587831466f6f676758555141514e324646384477675075775267674d5147637458517a6a73454b3573386a6f2f

Deployed Bytecode

0x6080604052600436106101d85760003560e01c806370a0823111610102578063b88d4fde11610095578063d65a9c4f11610064578063d65a9c4f146104f1578063e14ca35314610504578063e985e9c514610519578063f2fde38b1461056257600080fd5b8063b88d4fde14610487578063c6682862146104a7578063c87b56dd146104bc578063d5abeb01146104dc57600080fd5b806395d89b41116100d157806395d89b41146104275780639f181b5e1461043c578063a22cb46514610451578063a3d1922b1461047157600080fd5b806370a08231146103b4578063715018a6146103d45780638796bfd6146103e95780638da5cb5b1461040957600080fd5b80632513479b1161017a5780634f6ccce7116101495780634f6ccce7146103455780635c975abb146103655780636352211e1461037f5780636c0360eb1461039f57600080fd5b80632513479b146102e75780632f745c59146102fd5780633ccfd60b1461031d57806342842e0e1461032557600080fd5b8063095ea7b3116101b6578063095ea7b31461026c57806313faede61461028e57806318160ddd146102b257806323b872dd146102c757600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004611bac565b610582565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b506102276105ad565b6040516102099190611c21565b34801561024057600080fd5b5061025461024f366004611c34565b61063f565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c610287366004611c69565b6106d9565b005b34801561029a57600080fd5b506102a460105481565b604051908152602001610209565b3480156102be57600080fd5b506008546102a4565b3480156102d357600080fd5b5061028c6102e2366004611c93565b6107ef565b3480156102f357600080fd5b506102a460125481565b34801561030957600080fd5b506102a4610318366004611c69565b610820565b61028c6108b6565b34801561033157600080fd5b5061028c610340366004611c93565b610906565b34801561035157600080fd5b506102a4610360366004611c34565b610921565b34801561037157600080fd5b506013546101fd9060ff1681565b34801561038b57600080fd5b5061025461039a366004611c34565b6109b4565b3480156103ab57600080fd5b50610227610a2b565b3480156103c057600080fd5b506102a46103cf366004611ccf565b610ab9565b3480156103e057600080fd5b5061028c610b40565b3480156103f557600080fd5b50601554610254906001600160a01b031681565b34801561041557600080fd5b50600a546001600160a01b0316610254565b34801561043357600080fd5b50610227610b74565b34801561044857600080fd5b506102a4610b83565b34801561045d57600080fd5b5061028c61046c366004611cea565b610b93565b34801561047d57600080fd5b506102a460115481565b34801561049357600080fd5b5061028c6104a2366004611d3c565b610c58565b3480156104b357600080fd5b50610227610c90565b3480156104c857600080fd5b506102276104d7366004611c34565b610c9d565b3480156104e857600080fd5b50600c546102a4565b61028c6104ff366004611c34565b610d7b565b34801561051057600080fd5b506102a4610f01565b34801561052557600080fd5b506101fd610534366004611e18565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561056e57600080fd5b5061028c61057d366004611ccf565b610f18565b60006001600160e01b0319821663780e9d6360e01b14806105a757506105a782610fb3565b92915050565b6060600080546105bc90611e4b565b80601f01602080910402602001604051908101604052809291908181526020018280546105e890611e4b565b80156106355780601f1061060a57610100808354040283529160200191610635565b820191906000526020600020905b81548152906001019060200180831161061857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106bd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106e4826109b4565b9050806001600160a01b0316836001600160a01b031614156107525760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106b4565b336001600160a01b038216148061076e575061076e8133610534565b6107e05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106b4565b6107ea8383611003565b505050565b6107f93382611071565b6108155760405162461bcd60e51b81526004016106b490611e86565b6107ea838383611168565b600061082b83610ab9565b821061088d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106b4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146108e05760405162461bcd60e51b81526004016106b490611ed7565b60405133904780156108fc02916000818181858888f1935050505061090457600080fd5b565b6107ea83838360405180602001604052806000815250610c58565b600061092c60085490565b821061098f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106b4565b600882815481106109a2576109a2611f0c565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105a75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106b4565b60148054610a3890611e4b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6490611e4b565b8015610ab15780601f10610a8657610100808354040283529160200191610ab1565b820191906000526020600020905b815481529060010190602001808311610a9457829003601f168201915b505050505081565b60006001600160a01b038216610b245760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106b4565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610b6a5760405162461bcd60e51b81526004016106b490611ed7565b6109046000611313565b6060600180546105bc90611e4b565b6000610b8e600b5490565b905090565b6001600160a01b038216331415610bec5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106b4565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610c623383611071565b610c7e5760405162461bcd60e51b81526004016106b490611e86565b610c8a84848484611365565b50505050565b600f8054610a3890611e4b565b6000818152600260205260409020546060906001600160a01b0316610d1c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106b4565b6000610d26611398565b90506000815111610d465760405180602001604052806000815250610d74565b80610d50846113a7565b600f604051602001610d6493929190611f22565b6040516020818303038152906040525b9392505050565b60135460ff1615610d8b57600080fd5b6016546040516370a0823160e01b81523360048201526b204fce5e3e25026110000000916001600160a01b0316906370a082319060240160206040518083038186803b158015610dda57600080fd5b505afa158015610dee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e129190611fe6565b1015610e605760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f756768204d6574746920496e7520746f6b656e73000000000060448201526064016106b4565b60008111610e6d57600080fd5b601254811115610e7c57600080fd5b60115481610e8960085490565b610e939190612015565b1115610e9e57600080fd5b80601054610eac919061202d565b341015610eb857600080fd5b60015b818111610efd576000610ecc6114a5565b9050601154610eda60085490565b1015610eea57610eea3382611638565b5080610ef58161204c565b915050610ebb565b5050565b6000610f0b610b83565b600c54610b8e9190612067565b600a546001600160a01b03163314610f425760405162461bcd60e51b81526004016106b490611ed7565b6001600160a01b038116610fa75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b4565b610fb081611313565b50565b60006001600160e01b031982166380ac58cd60e01b1480610fe457506001600160e01b03198216635b5e139f60e01b145b806105a757506301ffc9a760e01b6001600160e01b03198316146105a7565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611038826109b4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166110ea5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106b4565b60006110f5836109b4565b9050806001600160a01b0316846001600160a01b031614806111305750836001600160a01b03166111258461063f565b6001600160a01b0316145b8061116057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661117b826109b4565b6001600160a01b0316146111e35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106b4565b6001600160a01b0382166112455760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106b4565b611250838383611652565b61125b600082611003565b6001600160a01b0383166000908152600360205260408120805460019290611284908490612067565b90915550506001600160a01b03821660009081526003602052604081208054600192906112b2908490612015565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611370848484611168565b61137c8484848461170a565b610c8a5760405162461bcd60e51b81526004016106b49061207e565b6060601480546105bc90611e4b565b6060816113cb5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113f557806113df8161204c565b91506113ee9050600a836120e6565b91506113cf565b60008167ffffffffffffffff81111561141057611410611d26565b6040519080825280601f01601f19166020018201604052801561143a576020820181803683370190505b5090505b84156111605761144f600183612067565b915061145c600a866120fa565b611467906030612015565b60f81b81838151811061147c5761147c611f0c565b60200101906001600160f81b031916908160001a90535061149e600a866120e6565b945061143e565b6000806114b0610f01565b116114f85760405162461bcd60e51b81526020600482015260186024820152774e6f206d6f726520746f6b656e7320617661696c61626c6560401b60448201526064016106b4565b6000611502610b83565b600c5461150f9190612067565b6040516bffffffffffffffffffffffff1933606090811b8216602084015241901b166034820152446048820152456068820152426088820152909150600090829060a8016040516020818303038152906040528051906020012060001c61157691906120fa565b6000818152600d6020526040812054919250906115945750806115a5565b506000818152600d60205260409020545b600d60006115b4600186612067565b815260200190815260200160002054600014156115ea576115d6600184612067565b6000838152600d602052604090205561161a565b600d60006115f9600186612067565b81526020808201929092526040908101600090812054858252600d90935220555b611622611817565b50600e546116309082612015565b935050505090565b610efd828260405180602001604052806000815250611885565b6001600160a01b0383166116ad576116a881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6116d0565b816001600160a01b0316836001600160a01b0316146116d0576116d083826118b8565b6001600160a01b0382166116e7576107ea81611955565b826001600160a01b0316826001600160a01b0316146107ea576107ea8282611a04565b60006001600160a01b0384163b1561180c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061174e90339089908890889060040161210e565b602060405180830381600087803b15801561176857600080fd5b505af1925050508015611798575060408051601f3d908101601f191682019092526117959181019061214b565b60015b6117f2573d8080156117c6576040519150601f19603f3d011682016040523d82523d6000602084013e6117cb565b606091505b5080516117ea5760405162461bcd60e51b81526004016106b49061207e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611160565b506001949350505050565b600080611822610f01565b1161186a5760405162461bcd60e51b81526020600482015260186024820152774e6f206d6f726520746f6b656e7320617661696c61626c6560401b60448201526064016106b4565b6000611875600b5490565b9050610b8e600b80546001019055565b61188f8383611a48565b61189c600084848461170a565b6107ea5760405162461bcd60e51b81526004016106b49061207e565b600060016118c584610ab9565b6118cf9190612067565b600083815260076020526040902054909150808214611922576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061196790600190612067565b6000838152600960205260408120546008805493945090928490811061198f5761198f611f0c565b9060005260206000200154905080600883815481106119b0576119b0611f0c565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806119e8576119e8612168565b6001900381819060005260206000200160009055905550505050565b6000611a0f83610ab9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611a9e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106b4565b6000818152600260205260409020546001600160a01b031615611b035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106b4565b611b0f60008383611652565b6001600160a01b0382166000908152600360205260408120805460019290611b38908490612015565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610fb057600080fd5b600060208284031215611bbe57600080fd5b8135610d7481611b96565b60005b83811015611be4578181015183820152602001611bcc565b83811115610c8a5750506000910152565b60008151808452611c0d816020860160208601611bc9565b601f01601f19169290920160200192915050565b602081526000610d746020830184611bf5565b600060208284031215611c4657600080fd5b5035919050565b80356001600160a01b0381168114611c6457600080fd5b919050565b60008060408385031215611c7c57600080fd5b611c8583611c4d565b946020939093013593505050565b600080600060608486031215611ca857600080fd5b611cb184611c4d565b9250611cbf60208501611c4d565b9150604084013590509250925092565b600060208284031215611ce157600080fd5b610d7482611c4d565b60008060408385031215611cfd57600080fd5b611d0683611c4d565b915060208301358015158114611d1b57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611d5257600080fd5b611d5b85611c4d565b9350611d6960208601611c4d565b925060408501359150606085013567ffffffffffffffff80821115611d8d57600080fd5b818701915087601f830112611da157600080fd5b813581811115611db357611db3611d26565b604051601f8201601f19908116603f01168101908382118183101715611ddb57611ddb611d26565b816040528281528a6020848701011115611df457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611e2b57600080fd5b611e3483611c4d565b9150611e4260208401611c4d565b90509250929050565b600181811c90821680611e5f57607f821691505b60208210811415611e8057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600084516020611f358285838a01611bc9565b855191840191611f488184848a01611bc9565b8554920191600090600181811c9080831680611f6557607f831692505b858310811415611f8357634e487b7160e01b85526022600452602485fd5b808015611f975760018114611fa857611fd5565b60ff19851688528388019550611fd5565b60008b81526020902060005b85811015611fcd5781548a820152908401908801611fb4565b505083880195505b50939b9a5050505050505050505050565b600060208284031215611ff857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561202857612028611fff565b500190565b600081600019048311821515161561204757612047611fff565b500290565b600060001982141561206057612060611fff565b5060010190565b60008282101561207957612079611fff565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826120f5576120f56120d0565b500490565b600082612109576121096120d0565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061214190830184611bf5565b9695505050505050565b60006020828403121561215d57600080fd5b8151610d7481611b96565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220dba2032d2fb0324c2cb3421de2b85d51934e329d8cd8172ea0e6f130d284189664736f6c63430008090033

Deployed Bytecode Sourcemap

57161:1989:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49629:224;;;;;;;;;;-1:-1:-1;49629:224:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;49629:224:0;;;;;;;;37521:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;39080:221::-;;;;;;;;;;-1:-1:-1;39080:221:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;39080:221:0;1528:203:1;38603:411:0;;;;;;;;;;-1:-1:-1;38603:411:0;;;;;:::i;:::-;;:::i;:::-;;57309:31;;;;;;;;;;;;;;;;;;;2319:25:1;;;2307:2;2292:18;57309:31:0;2173:177:1;50269:113:0;;;;;;;;;;-1:-1:-1;50357:10:0;:17;50269:113;;39970:339;;;;;;;;;;-1:-1:-1;39970:339:0;;;;;:::i;:::-;;:::i;57380:37::-;;;;;;;;;;;;;;;;49937:256;;;;;;;;;;-1:-1:-1;49937:256:0;;;;;:::i;:::-;;:::i;59033:114::-;;;:::i;40380:185::-;;;;;;;;;;-1:-1:-1;40380:185:0;;;;;:::i;:::-;;:::i;50459:233::-;;;;;;;;;;-1:-1:-1;50459:233:0;;;;;:::i;:::-;;:::i;57423:26::-;;;;;;;;;;-1:-1:-1;57423:26:0;;;;;;;;37215:239;;;;;;;;;;-1:-1:-1;37215:239:0;;;;;:::i;:::-;;:::i;57458:94::-;;;;;;;;;;;;;:::i;36945:208::-;;;;;;;;;;-1:-1:-1;36945:208:0;;;;;:::i;:::-;;:::i;17220:94::-;;;;;;;;;;;;;:::i;57561:80::-;;;;;;;;;;-1:-1:-1;57561:80:0;;;;-1:-1:-1;;;;;57561:80:0;;;16569:87;;;;;;;;;;-1:-1:-1;16642:6:0;;-1:-1:-1;;;;;16642:6:0;16569:87;;37690:104;;;;;;;;;;;;;:::i;2452:99::-;;;;;;;;;;;;;:::i;39373:295::-;;;;;;;;;;-1:-1:-1;39373:295:0;;;;;:::i;:::-;;:::i;57346:28::-;;;;;;;;;;;;;;;;40636:328;;;;;;;;;;-1:-1:-1;40636:328:0;;;;;:::i;:::-;;:::i;57267:37::-;;;;;;;;;;;;;:::i;58586:423::-;;;;;;;;;;-1:-1:-1;58586:423:0;;;;;:::i;:::-;;:::i;2274:87::-;;;;;;;;;;-1:-1:-1;2343:10:0;;2274:87;;57956:624;;;;;;:::i;:::-;;:::i;2657:113::-;;;;;;;;;;;;;:::i;39739:164::-;;;;;;;;;;-1:-1:-1;39739:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;39860:25:0;;;39836:4;39860:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;39739:164;17469:192;;;;;;;;;;-1:-1:-1;17469:192:0;;;;;:::i;:::-;;:::i;49629:224::-;49731:4;-1:-1:-1;;;;;;49755:50:0;;-1:-1:-1;;;49755:50:0;;:90;;;49809:36;49833:11;49809:23;:36::i;:::-;49748:97;49629:224;-1:-1:-1;;49629:224:0:o;37521:100::-;37575:13;37608:5;37601:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37521:100;:::o;39080:221::-;39156:7;42563:16;;;:7;:16;;;;;;-1:-1:-1;;;;;42563:16:0;39176:73;;;;-1:-1:-1;;;39176:73:0;;5358:2:1;39176:73:0;;;5340:21:1;5397:2;5377:18;;;5370:30;5436:34;5416:18;;;5409:62;-1:-1:-1;;;5487:18:1;;;5480:42;5539:19;;39176:73:0;;;;;;;;;-1:-1:-1;39269:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;39269:24:0;;39080:221::o;38603:411::-;38684:13;38700:23;38715:7;38700:14;:23::i;:::-;38684:39;;38748:5;-1:-1:-1;;;;;38742:11:0;:2;-1:-1:-1;;;;;38742:11:0;;;38734:57;;;;-1:-1:-1;;;38734:57:0;;5771:2:1;38734:57:0;;;5753:21:1;5810:2;5790:18;;;5783:30;5849:34;5829:18;;;5822:62;-1:-1:-1;;;5900:18:1;;;5893:31;5941:19;;38734:57:0;5569:397:1;38734:57:0;15437:10;-1:-1:-1;;;;;38826:21:0;;;;:62;;-1:-1:-1;38851:37:0;38868:5;15437:10;39739:164;:::i;38851:37::-;38804:168;;;;-1:-1:-1;;;38804:168:0;;6173:2:1;38804:168:0;;;6155:21:1;6212:2;6192:18;;;6185:30;6251:34;6231:18;;;6224:62;6322:26;6302:18;;;6295:54;6366:19;;38804:168:0;5971:420:1;38804:168:0;38985:21;38994:2;38998:7;38985:8;:21::i;:::-;38673:341;38603:411;;:::o;39970:339::-;40165:41;15437:10;40198:7;40165:18;:41::i;:::-;40157:103;;;;-1:-1:-1;;;40157:103:0;;;;;;;:::i;:::-;40273:28;40283:4;40289:2;40293:7;40273:9;:28::i;49937:256::-;50034:7;50070:23;50087:5;50070:16;:23::i;:::-;50062:5;:31;50054:87;;;;-1:-1:-1;;;50054:87:0;;7016:2:1;50054:87:0;;;6998:21:1;7055:2;7035:18;;;7028:30;7094:34;7074:18;;;7067:62;-1:-1:-1;;;7145:18:1;;;7138:41;7196:19;;50054:87:0;6814:407:1;50054:87:0;-1:-1:-1;;;;;;50159:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;49937:256::o;59033:114::-;16642:6;;-1:-1:-1;;;;;16642:6:0;15437:10;16789:23;16781:68;;;;-1:-1:-1;;;16781:68:0;;;;;;;:::i;:::-;59093:47:::1;::::0;59101:10:::1;::::0;59118:21:::1;59093:47:::0;::::1;;;::::0;::::1;::::0;;;59118:21;59101:10;59093:47;::::1;;;;;;59085:56;;;::::0;::::1;;59033:114::o:0;40380:185::-;40518:39;40535:4;40541:2;40545:7;40518:39;;;;;;;;;;;;:16;:39::i;50459:233::-;50534:7;50570:30;50357:10;:17;;50269:113;50570:30;50562:5;:38;50554:95;;;;-1:-1:-1;;;50554:95:0;;7789:2:1;50554:95:0;;;7771:21:1;7828:2;7808:18;;;7801:30;7867:34;7847:18;;;7840:62;-1:-1:-1;;;7918:18:1;;;7911:42;7970:19;;50554:95:0;7587:408:1;50554:95:0;50667:10;50678:5;50667:17;;;;;;;;:::i;:::-;;;;;;;;;50660:24;;50459:233;;;:::o;37215:239::-;37287:7;37323:16;;;:7;:16;;;;;;-1:-1:-1;;;;;37323:16:0;37358:19;37350:73;;;;-1:-1:-1;;;37350:73:0;;8334:2:1;37350:73:0;;;8316:21:1;8373:2;8353:18;;;8346:30;8412:34;8392:18;;;8385:62;-1:-1:-1;;;8463:18:1;;;8456:39;8512:19;;37350:73:0;8132:405:1;57458:94:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;36945:208::-;37017:7;-1:-1:-1;;;;;37045:19:0;;37037:74;;;;-1:-1:-1;;;37037:74:0;;8744:2:1;37037:74:0;;;8726:21:1;8783:2;8763:18;;;8756:30;8822:34;8802:18;;;8795:62;-1:-1:-1;;;8873:18:1;;;8866:40;8923:19;;37037:74:0;8542:406:1;37037:74:0;-1:-1:-1;;;;;;37129:16:0;;;;;:9;:16;;;;;;;36945:208::o;17220:94::-;16642:6;;-1:-1:-1;;;;;16642:6:0;15437:10;16789:23;16781:68;;;;-1:-1:-1;;;16781:68:0;;;;;;;:::i;:::-;17285:21:::1;17303:1;17285:9;:21::i;37690:104::-:0;37746:13;37779:7;37772:14;;;;;:::i;2452:99::-;2495:7;2522:21;:11;1017:14;;925:114;2522:21;2515:28;;2452:99;:::o;39373:295::-;-1:-1:-1;;;;;39476:24:0;;15437:10;39476:24;;39468:62;;;;-1:-1:-1;;;39468:62:0;;9155:2:1;39468:62:0;;;9137:21:1;9194:2;9174:18;;;9167:30;9233:27;9213:18;;;9206:55;9278:18;;39468:62:0;8953:349:1;39468:62:0;15437:10;39543:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;39543:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;39543:53:0;;;;;;;;;;39612:48;;540:41:1;;;39543:42:0;;15437:10;39612:48;;513:18:1;39612:48:0;;;;;;;39373:295;;:::o;40636:328::-;40811:41;15437:10;40844:7;40811:18;:41::i;:::-;40803:103;;;;-1:-1:-1;;;40803:103:0;;;;;;;:::i;:::-;40917:39;40931:4;40937:2;40941:7;40950:5;40917:13;:39::i;:::-;40636:328;;;;:::o;57267:37::-;;;;;;;:::i;58586:423::-;42539:4;42563:16;;;:7;:16;;;;;;58684:13;;-1:-1:-1;;;;;42563:16:0;58709:97;;;;-1:-1:-1;;;58709:97:0;;9509:2:1;58709:97:0;;;9491:21:1;9548:2;9528:18;;;9521:30;9587:34;9567:18;;;9560:62;-1:-1:-1;;;9638:18:1;;;9631:45;9693:19;;58709:97:0;9307:411:1;58709:97:0;58815:28;58846:10;:8;:10::i;:::-;58815:41;;58901:1;58876:14;58870:28;:32;:133;;;;;;;;;;;;;;;;;58938:14;58954:18;:7;:16;:18::i;:::-;58974:13;58921:67;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;58870:133;58863:140;58586:423;-1:-1:-1;;;58586:423:0:o;57956:624::-;58047:6;;;;58046:7;58038:16;;;;;;58069:21;;:43;;-1:-1:-1;;;58069:43:0;;58101:10;58069:43;;;1674:51:1;58116:29:0;;-1:-1:-1;;;;;58069:21:0;;:31;;1647:18:1;;58069:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:76;;58061:116;;;;-1:-1:-1;;;58061:116:0;;11772:2:1;58061:116:0;;;11754:21:1;11811:2;11791:18;;;11784:30;11850:29;11830:18;;;11823:57;11897:18;;58061:116:0;11570:351:1;58061:116:0;58210:1;58192:15;:19;58184:28;;;;;;58246:17;;58227:15;:36;;58219:45;;;;;;58314:7;;58295:15;58279:13;50357:10;:17;;50269:113;58279:13;:31;;;;:::i;:::-;:42;;58271:51;;;;;;58357:15;58350:4;;:22;;;;:::i;:::-;58337:9;:35;;58329:44;;;;;;58399:1;58382:193;58407:15;58402:1;:20;58382:193;;58440:17;58460:11;:9;:11::i;:::-;58440:31;;58499:7;;58483:13;50357:10;:17;;50269:113;58483:13;:23;58479:90;;;58527:34;15437:10;58551:9;58527;:34::i;:::-;-1:-1:-1;58424:3:0;;;;:::i;:::-;;;;58382:193;;;;57956:624;:::o;2657:113::-;2709:7;2750:12;:10;:12::i;:::-;2343:10;;2736:26;;;;:::i;17469:192::-;16642:6;;-1:-1:-1;;;;;16642:6:0;15437:10;16789:23;16781:68;;;;-1:-1:-1;;;16781:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;17558:22:0;::::1;17550:73;;;::::0;-1:-1:-1;;;17550:73:0;;12836:2:1;17550:73:0::1;::::0;::::1;12818:21:1::0;12875:2;12855:18;;;12848:30;12914:34;12894:18;;;12887:62;-1:-1:-1;;;12965:18:1;;;12958:36;13011:19;;17550:73:0::1;12634:402:1::0;17550:73:0::1;17634:19;17644:8;17634:9;:19::i;:::-;17469:192:::0;:::o;36576:305::-;36678:4;-1:-1:-1;;;;;;36715:40:0;;-1:-1:-1;;;36715:40:0;;:105;;-1:-1:-1;;;;;;;36772:48:0;;-1:-1:-1;;;36772:48:0;36715:105;:158;;;-1:-1:-1;;;;;;;;;;28664:40:0;;;36837:36;28555:157;46456:174;46531:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;46531:29:0;-1:-1:-1;;;;;46531:29:0;;;;;;;;:24;;46585:23;46531:24;46585:14;:23::i;:::-;-1:-1:-1;;;;;46576:46:0;;;;;;;;;;;46456:174;;:::o;42768:348::-;42861:4;42563:16;;;:7;:16;;;;;;-1:-1:-1;;;;;42563:16:0;42878:73;;;;-1:-1:-1;;;42878:73:0;;13243:2:1;42878:73:0;;;13225:21:1;13282:2;13262:18;;;13255:30;13321:34;13301:18;;;13294:62;-1:-1:-1;;;13372:18:1;;;13365:42;13424:19;;42878:73:0;13041:408:1;42878:73:0;42962:13;42978:23;42993:7;42978:14;:23::i;:::-;42962:39;;43031:5;-1:-1:-1;;;;;43020:16:0;:7;-1:-1:-1;;;;;43020:16:0;;:51;;;;43064:7;-1:-1:-1;;;;;43040:31:0;:20;43052:7;43040:11;:20::i;:::-;-1:-1:-1;;;;;43040:31:0;;43020:51;:87;;;-1:-1:-1;;;;;;39860:25:0;;;39836:4;39860:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;43075:32;43012:96;42768:348;-1:-1:-1;;;;42768:348:0:o;45760:578::-;45919:4;-1:-1:-1;;;;;45892:31:0;:23;45907:7;45892:14;:23::i;:::-;-1:-1:-1;;;;;45892:31:0;;45884:85;;;;-1:-1:-1;;;45884:85:0;;13656:2:1;45884:85:0;;;13638:21:1;13695:2;13675:18;;;13668:30;13734:34;13714:18;;;13707:62;-1:-1:-1;;;13785:18:1;;;13778:39;13834:19;;45884:85:0;13454:405:1;45884:85:0;-1:-1:-1;;;;;45988:16:0;;45980:65;;;;-1:-1:-1;;;45980:65:0;;14066:2:1;45980:65:0;;;14048:21:1;14105:2;14085:18;;;14078:30;14144:34;14124:18;;;14117:62;-1:-1:-1;;;14195:18:1;;;14188:34;14239:19;;45980:65:0;13864:400:1;45980:65:0;46058:39;46079:4;46085:2;46089:7;46058:20;:39::i;:::-;46162:29;46179:1;46183:7;46162:8;:29::i;:::-;-1:-1:-1;;;;;46204:15:0;;;;;;:9;:15;;;;;:20;;46223:1;;46204:15;:20;;46223:1;;46204:20;:::i;:::-;;;;-1:-1:-1;;;;;;;46235:13:0;;;;;;:9;:13;;;;;:18;;46252:1;;46235:13;:18;;46252:1;;46235:18;:::i;:::-;;;;-1:-1:-1;;46264:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;46264:21:0;-1:-1:-1;;;;;46264:21:0;;;;;;;;;46303:27;;46264:16;;46303:27;;;;;;;45760:578;;;:::o;17669:173::-;17744:6;;;-1:-1:-1;;;;;17761:17:0;;;-1:-1:-1;;;;;;17761:17:0;;;;;;;17794:40;;17744:6;;;17761:17;17744:6;;17794:40;;17725:16;;17794:40;17714:128;17669:173;:::o;41846:315::-;42003:28;42013:4;42019:2;42023:7;42003:9;:28::i;:::-;42050:48;42073:4;42079:2;42083:7;42092:5;42050:22;:48::i;:::-;42042:111;;;;-1:-1:-1;;;42042:111:0;;;;;;;:::i;57833:102::-;57893:13;57922:7;57915:14;;;;;:::i;12973:723::-;13029:13;13250:10;13246:53;;-1:-1:-1;;13277:10:0;;;;;;;;;;;;-1:-1:-1;;;13277:10:0;;;;;12973:723::o;13246:53::-;13324:5;13309:12;13365:78;13372:9;;13365:78;;13398:8;;;;:::i;:::-;;-1:-1:-1;13421:10:0;;-1:-1:-1;13429:2:0;13421:10;;:::i;:::-;;;13365:78;;;13453:19;13485:6;13475:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13475:17:0;;13453:39;;13503:154;13510:10;;13503:154;;13537:11;13547:1;13537:11;;:::i;:::-;;-1:-1:-1;13606:10:0;13614:2;13606:5;:10;:::i;:::-;13593:24;;:2;:24;:::i;:::-;13580:39;;13563:6;13570;13563:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;13563:56:0;;;;;;;;-1:-1:-1;13634:11:0;13643:2;13634:11;;:::i;:::-;;;13503:154;;4438:1262;4505:7;3214:1;3190:21;:19;:21::i;:::-;:25;3182:62;;;;-1:-1:-1;;;3182:62:0;;15264:2:1;3182:62:0;;;15246:21:1;15303:2;15283:18;;;15276:30;-1:-1:-1;;;15322:18:1;;;15315:54;15386:18;;3182:62:0;15062:348:1;3182:62:0;4525:16:::1;4558:12;:10;:12::i;:::-;2343:10:::0;;4544:26:::1;;;;:::i;:::-;4630:195;::::0;-1:-1:-1;;4665:10:0::1;15742:2:1::0;15738:15;;;15734:24;;4630:195:0::1;::::0;::::1;15722:37:1::0;4694:14:0::1;15793:15:1::0;;15789:24;15775:12;;;15768:46;4727:16:0::1;15830:12:1::0;;;15823:28;4762:14:0::1;15867:12:1::0;;;15860:28;4795:15:0::1;15904:13:1::0;;;15897:29;4525:45:0;;-1:-1:-1;4581:14:0::1;::::0;4525:45;;15942:13:1;;4630:195:0::1;;;;;;;;;;;;4606:230;;;;;;4598:239;;:250;;;;:::i;:::-;4861:13;4893:19:::0;;;:11:::1;:19;::::0;;;;;4581:267;;-1:-1:-1;4861:13:0;4889:304:::1;;-1:-1:-1::0;5038:6:0;4889:304:::1;;;-1:-1:-1::0;5162:19:0::1;::::0;;;:11:::1;:19;::::0;;;;;4889:304:::1;5270:11;:25;5282:12;5293:1;5282:8:::0;:12:::1;:::i;:::-;5270:25;;;;;;;;;;;;5299:1;5270:30;5266:331;;;5404:12;5415:1;5404:8:::0;:12:::1;:::i;:::-;5382:19;::::0;;;:11:::1;:19;::::0;;;;:34;5266:331:::1;;;5560:11;:25;5572:12;5583:1;5572:8:::0;:12:::1;:::i;:::-;5560:25:::0;;::::1;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;5560:25:0;;;;5538:19;;;:11:::1;:19:::0;;;;:47;5266:331:::1;5638:17;:15;:17::i;:::-;-1:-1:-1::0;5683:9:0::1;::::0;5675:17:::1;::::0;:5;:17:::1;:::i;:::-;5668:24;;;;;4438:1262:::0;:::o;43458:110::-;43534:26;43544:2;43548:7;43534:26;;;;;;;;;;;;:9;:26::i;51305:589::-;-1:-1:-1;;;;;51511:18:0;;51507:187;;51546:40;51578:7;52721:10;:17;;52694:24;;;;:15;:24;;;;;:44;;;52749:24;;;;;;;;;;;;52617:164;51546:40;51507:187;;;51616:2;-1:-1:-1;;;;;51608:10:0;:4;-1:-1:-1;;;;;51608:10:0;;51604:90;;51635:47;51668:4;51674:7;51635:32;:47::i;:::-;-1:-1:-1;;;;;51708:16:0;;51704:183;;51741:45;51778:7;51741:36;:45::i;51704:183::-;51814:4;-1:-1:-1;;;;;51808:10:0;:2;-1:-1:-1;;;;;51808:10:0;;51804:83;;51835:40;51863:2;51867:7;51835:27;:40::i;47195:799::-;47350:4;-1:-1:-1;;;;;47371:13:0;;18938:20;18986:8;47367:620;;47407:72;;-1:-1:-1;;;47407:72:0;;-1:-1:-1;;;;;47407:36:0;;;;;:72;;15437:10;;47458:4;;47464:7;;47473:5;;47407:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47407:72:0;;;;;;;;-1:-1:-1;;47407:72:0;;;;;;;;;;;;:::i;:::-;;;47403:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47649:13:0;;47645:272;;47692:60;;-1:-1:-1;;;47692:60:0;;;;;;;:::i;47645:272::-;47867:6;47861:13;47852:6;47848:2;47844:15;47837:38;47403:529;-1:-1:-1;;;;;;47530:51:0;-1:-1:-1;;;47530:51:0;;-1:-1:-1;47523:58:0;;47367:620;-1:-1:-1;47971:4:0;47195:799;;;;;;:::o;2880:192::-;2946:7;3214:1;3190:21;:19;:21::i;:::-;:25;3182:62;;;;-1:-1:-1;;;3182:62:0;;15264:2:1;3182:62:0;;;15246:21:1;15303:2;15283:18;;;15276:30;-1:-1:-1;;;15322:18:1;;;15315:54;15386:18;;3182:62:0;15062:348:1;3182:62:0;2966:13:::1;2982:21;:11;1017:14:::0;;925:114;2982:21:::1;2966:37;;3016:23;:11;1136:19:::0;;1154:1;1136:19;;;1047:127;43795:321;43925:18;43931:2;43935:7;43925:5;:18::i;:::-;43976:54;44007:1;44011:2;44015:7;44024:5;43976:22;:54::i;:::-;43954:154;;;;-1:-1:-1;;;43954:154:0;;;;;;;:::i;53408:988::-;53674:22;53724:1;53699:22;53716:4;53699:16;:22::i;:::-;:26;;;;:::i;:::-;53736:18;53757:26;;;:17;:26;;;;;;53674:51;;-1:-1:-1;53890:28:0;;;53886:328;;-1:-1:-1;;;;;53957:18:0;;53935:19;53957:18;;;:12;:18;;;;;;;;:34;;;;;;;;;54008:30;;;;;;:44;;;54125:30;;:17;:30;;;;;:43;;;53886:328;-1:-1:-1;54310:26:0;;;;:17;:26;;;;;;;;54303:33;;;-1:-1:-1;;;;;54354:18:0;;;;;:12;:18;;;;;:34;;;;;;;54347:41;53408:988::o;54691:1079::-;54969:10;:17;54944:22;;54969:21;;54989:1;;54969:21;:::i;:::-;55001:18;55022:24;;;:15;:24;;;;;;55395:10;:26;;54944:46;;-1:-1:-1;55022:24:0;;54944:46;;55395:26;;;;;;:::i;:::-;;;;;;;;;55373:48;;55459:11;55434:10;55445;55434:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;55539:28;;;:15;:28;;;;;;;:41;;;55711:24;;;;;55704:31;55746:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;54762:1008;;;54691:1079;:::o;52195:221::-;52280:14;52297:20;52314:2;52297:16;:20::i;:::-;-1:-1:-1;;;;;52328:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;52373:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;52195:221:0:o;44452:382::-;-1:-1:-1;;;;;44532:16:0;;44524:61;;;;-1:-1:-1;;;44524:61:0;;17048:2:1;44524:61:0;;;17030:21:1;;;17067:18;;;17060:30;17126:34;17106:18;;;17099:62;17178:18;;44524:61:0;16846:356:1;44524:61:0;42539:4;42563:16;;;:7;:16;;;;;;-1:-1:-1;;;;;42563:16:0;:30;44596:58;;;;-1:-1:-1;;;44596:58:0;;17409:2:1;44596:58:0;;;17391:21:1;17448:2;17428:18;;;17421:30;17487;17467:18;;;17460:58;17535:18;;44596:58:0;17207:352:1;44596:58:0;44667:45;44696:1;44700:2;44704:7;44667:20;:45::i;:::-;-1:-1:-1;;;;;44725:13:0;;;;;;:9;:13;;;;;:18;;44742:1;;44725:13;:18;;44742:1;;44725:18;:::i;:::-;;;;-1:-1:-1;;44754:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;44754:21:0;-1:-1:-1;;;;;44754:21:0;;;;;;;;44793:33;;44754:16;;;44793:33;;44754:16;;44793:33;44452:382;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2355:328::-;2432:6;2440;2448;2501:2;2489:9;2480:7;2476:23;2472:32;2469:52;;;2517:1;2514;2507:12;2469:52;2540:29;2559:9;2540:29;:::i;:::-;2530:39;;2588:38;2622:2;2611:9;2607:18;2588:38;:::i;:::-;2578:48;;2673:2;2662:9;2658:18;2645:32;2635:42;;2355:328;;;;;:::o;2688:186::-;2747:6;2800:2;2788:9;2779:7;2775:23;2771:32;2768:52;;;2816:1;2813;2806:12;2768:52;2839:29;2858:9;2839:29;:::i;2879:347::-;2944:6;2952;3005:2;2993:9;2984:7;2980:23;2976:32;2973:52;;;3021:1;3018;3011:12;2973:52;3044:29;3063:9;3044:29;:::i;:::-;3034:39;;3123:2;3112:9;3108:18;3095:32;3170:5;3163:13;3156:21;3149:5;3146:32;3136:60;;3192:1;3189;3182:12;3136:60;3215:5;3205:15;;;2879:347;;;;;:::o;3231:127::-;3292:10;3287:3;3283:20;3280:1;3273:31;3323:4;3320:1;3313:15;3347:4;3344:1;3337:15;3363:1138;3458:6;3466;3474;3482;3535:3;3523:9;3514:7;3510:23;3506:33;3503:53;;;3552:1;3549;3542:12;3503:53;3575:29;3594:9;3575:29;:::i;:::-;3565:39;;3623:38;3657:2;3646:9;3642:18;3623:38;:::i;:::-;3613:48;;3708:2;3697:9;3693:18;3680:32;3670:42;;3763:2;3752:9;3748:18;3735:32;3786:18;3827:2;3819:6;3816:14;3813:34;;;3843:1;3840;3833:12;3813:34;3881:6;3870:9;3866:22;3856:32;;3926:7;3919:4;3915:2;3911:13;3907:27;3897:55;;3948:1;3945;3938:12;3897:55;3984:2;3971:16;4006:2;4002;3999:10;3996:36;;;4012:18;;:::i;:::-;4087:2;4081:9;4055:2;4141:13;;-1:-1:-1;;4137:22:1;;;4161:2;4133:31;4129:40;4117:53;;;4185:18;;;4205:22;;;4182:46;4179:72;;;4231:18;;:::i;:::-;4271:10;4267:2;4260:22;4306:2;4298:6;4291:18;4346:7;4341:2;4336;4332;4328:11;4324:20;4321:33;4318:53;;;4367:1;4364;4357:12;4318:53;4423:2;4418;4414;4410:11;4405:2;4397:6;4393:15;4380:46;4468:1;4463:2;4458;4450:6;4446:15;4442:24;4435:35;4489:6;4479:16;;;;;;;3363:1138;;;;;;;:::o;4506:260::-;4574:6;4582;4635:2;4623:9;4614:7;4610:23;4606:32;4603:52;;;4651:1;4648;4641:12;4603:52;4674:29;4693:9;4674:29;:::i;:::-;4664:39;;4722:38;4756:2;4745:9;4741:18;4722:38;:::i;:::-;4712:48;;4506:260;;;;;:::o;4771:380::-;4850:1;4846:12;;;;4893;;;4914:61;;4968:4;4960:6;4956:17;4946:27;;4914:61;5021:2;5013:6;5010:14;4990:18;4987:38;4984:161;;;5067:10;5062:3;5058:20;5055:1;5048:31;5102:4;5099:1;5092:15;5130:4;5127:1;5120:15;4984:161;;4771:380;;;:::o;6396:413::-;6598:2;6580:21;;;6637:2;6617:18;;;6610:30;6676:34;6671:2;6656:18;;6649:62;-1:-1:-1;;;6742:2:1;6727:18;;6720:47;6799:3;6784:19;;6396:413::o;7226:356::-;7428:2;7410:21;;;7447:18;;;7440:30;7506:34;7501:2;7486:18;;7479:62;7573:2;7558:18;;7226:356::o;8000:127::-;8061:10;8056:3;8052:20;8049:1;8042:31;8092:4;8089:1;8082:15;8116:4;8113:1;8106:15;9849:1527;10073:3;10111:6;10105:13;10137:4;10150:51;10194:6;10189:3;10184:2;10176:6;10172:15;10150:51;:::i;:::-;10264:13;;10223:16;;;;10286:55;10264:13;10223:16;10308:15;;;10286:55;:::i;:::-;10430:13;;10363:20;;;10403:1;;10490;10512:18;;;;10565;;;;10592:93;;10670:4;10660:8;10656:19;10644:31;;10592:93;10733:2;10723:8;10720:16;10700:18;10697:40;10694:167;;;-1:-1:-1;;;10760:33:1;;10816:4;10813:1;10806:15;10846:4;10767:3;10834:17;10694:167;10877:18;10904:110;;;;11028:1;11023:328;;;;10870:481;;10904:110;-1:-1:-1;;10939:24:1;;10925:39;;10984:20;;;;-1:-1:-1;10904:110:1;;11023:328;9796:1;9789:14;;;9833:4;9820:18;;11118:1;11132:169;11146:8;11143:1;11140:15;11132:169;;;11228:14;;11213:13;;;11206:37;11271:16;;;;11163:10;;11132:169;;;11136:3;;11332:8;11325:5;11321:20;11314:27;;10870:481;-1:-1:-1;11367:3:1;;9849:1527;-1:-1:-1;;;;;;;;;;;9849:1527:1:o;11381:184::-;11451:6;11504:2;11492:9;11483:7;11479:23;11475:32;11472:52;;;11520:1;11517;11510:12;11472:52;-1:-1:-1;11543:16:1;;11381:184;-1:-1:-1;11381:184:1:o;11926:127::-;11987:10;11982:3;11978:20;11975:1;11968:31;12018:4;12015:1;12008:15;12042:4;12039:1;12032:15;12058:128;12098:3;12129:1;12125:6;12122:1;12119:13;12116:39;;;12135:18;;:::i;:::-;-1:-1:-1;12171:9:1;;12058:128::o;12191:168::-;12231:7;12297:1;12293;12289:6;12285:14;12282:1;12279:21;12274:1;12267:9;12260:17;12256:45;12253:71;;;12304:18;;:::i;:::-;-1:-1:-1;12344:9:1;;12191:168::o;12364:135::-;12403:3;-1:-1:-1;;12424:17:1;;12421:43;;;12444:18;;:::i;:::-;-1:-1:-1;12491:1:1;12480:13;;12364:135::o;12504:125::-;12544:4;12572:1;12569;12566:8;12563:34;;;12577:18;;:::i;:::-;-1:-1:-1;12614:9:1;;12504:125::o;14269:414::-;14471:2;14453:21;;;14510:2;14490:18;;;14483:30;14549:34;14544:2;14529:18;;14522:62;-1:-1:-1;;;14615:2:1;14600:18;;14593:48;14673:3;14658:19;;14269:414::o;14688:127::-;14749:10;14744:3;14740:20;14737:1;14730:31;14780:4;14777:1;14770:15;14804:4;14801:1;14794:15;14820:120;14860:1;14886;14876:35;;14891:18;;:::i;:::-;-1:-1:-1;14925:9:1;;14820:120::o;14945:112::-;14977:1;15003;14993:35;;15008:18;;:::i;:::-;-1:-1:-1;15042:9:1;;14945:112::o;15966:489::-;-1:-1:-1;;;;;16235:15:1;;;16217:34;;16287:15;;16282:2;16267:18;;16260:43;16334:2;16319:18;;16312:34;;;16382:3;16377:2;16362:18;;16355:31;;;16160:4;;16403:46;;16429:19;;16421:6;16403:46;:::i;:::-;16395:54;15966:489;-1:-1:-1;;;;;;15966:489:1:o;16460:249::-;16529:6;16582:2;16570:9;16561:7;16557:23;16553:32;16550:52;;;16598:1;16595;16588:12;16550:52;16630:9;16624:16;16649:30;16673:5;16649:30;:::i;16714:127::-;16775:10;16770:3;16766:20;16763:1;16756:31;16806:4;16803:1;16796:15;16830:4;16827:1;16820:15

Swarm Source

ipfs://dba2032d2fb0324c2cb3421de2b85d51934e329d8cd8172ea0e6f130d2841896

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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